SimpleSEF 2.0 (SMF 1.1.x and SMF 2.0)

Started by SlammedDime, December 05, 2009, 10:08:40 PM

Previous topic - Next topic

Dblog

there should be 2 types of file managers in cpanel (legacy and normal)
try both

agent47

Quote from: Cblog on October 25, 2011, 10:44:41 PM
there should be 2 types of file managers in cpanel (legacy and normal)
try both
Don't see it here either. Is there anyway I can create a file like this?

PortaMx is probably the best SMF portal!

Dblog

create a .htaccess file on your computer and upload it
chmod it to 644

eline

503 error when simpleSEF is enabled and I try to modify a post. SMF 2.0.1. Any one have similar problem?
No other bugs, problems, etc - just this and only with modification ...

Any clue will by great ....

agent47

eline did you read this:

This section allows you to edit the options for SimpleSEF.

Note: If you enable this and start receiving 404 errors on your board, it is likely because .htaccess or web.config was not created, or your host does not have the mod_rewrite or Microsoft Url Rewrite module installed on the web server and you will not be able to use this mod. [Help]
If you have an Apache webserver, or one that uses .htaccess and has mod_rewrite functionality, you need a .htaccess file in your main SMF directory with the following:
Code:
RewriteEngine On
# Uncomment the following line if its not working right
# RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
If you have a IIS7 webserver, you need a web.config file in your main SMF directory with the following:
Code:
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="SimpleSEF" stopProcessing="true">
<match url="^(.*)$" ignoreCase="false" />
<conditions logicalGrouping="MatchAll">
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" pattern="" ignoreCase="false" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" pattern="" ignoreCase="false" />
</conditions>
<action type="Rewrite" url="index.php?q={R:1}" appendQueryString="true" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>
If you have Lighttpd v1.4.23 or less, you will need the following in your Lighttpd config file, normally at /etc/lighttpd/lighttpd.conf (thanks to Daniel15). $HTTP["host"] =~ "(www.)?example.com" {
url.rewrite-final += (
# Allow all normal files
"^/forum/.*\.(js|ico|gif|jpg|png|swf|css|htm|php)(\?.*)?$" => "$0",
# Rewrite everything else
"^/([^.?]*)$" => "/index.php?q=$1"
)
}
You can also make this work with Nginx with the following code added to your Nginx configuration file. if (!-e $request_filename) {
rewrite ^/(.*)$ /index.php?q=$1 last;
}

PortaMx is probably the best SMF portal!

agent47

Doesn't seem to be working for me :(

URLs are displayed in this manner: /18/-655.msg8150.html#new | even though I have Create Simple URLs turned off.
I have also unticked Search engine friendly URLs
And I did clear the cache. Please tell me what's going wrong? click on my sig if you wanna visit the site I installed this on.

PortaMx is probably the best SMF portal!

eline

Friendly URL's work fine in any other case than EDIT OF POST. When I try edit post as a moderator or admin I have 503 error. So there is something change with 2.0.1 or in general something wrong with simpleSEF.

Am'

Quote from: agent47 on October 27, 2011, 07:15:24 PM
Doesn't seem to be working for me :(

URLs are displayed in this manner: /18/-655.msg8150.html#new | even though I have Create Simple URLs turned off.
I have also unticked Search engine friendly URLs
And I did clear the cache. Please tell me what's going wrong? click on my sig if you wanna visit the site I installed this on.

the same problem

simplesef incompatible with 2.0.1
اذا أحس أحد انه لم يخطأ ابدا في حياته, فهذا يعني أنه لم يجرب أي جديد في حياته
My Mods For SMF 2 RC3 : XQuote XCode - Vbulletin Style New Meta Tags

Dblog

the problem is that google is not indexing links like .0.html quickly

Suki

I have an 2.0.1 installation working just fine with this mod, you just need to create a proper .htaccess
Disclaimer: unless otherwise stated, all my posts are personal and does not represent any views or opinions held by Simple Machines.

Antes

[11-Nov-2011 19:06:48] PHP Notice:  iconv() [<a href='function.iconv'>function.iconv</a>]: Detected an illegal character in input string in /home/****/public_html/testsmf/Sources/SimpleSEF.php on line 1160

RewriteEngine On
# Uncomment the following line if it's not working right
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]


Still thinking what i'm doing wrong :(

Dblog

if we disable this mod, how to redirect SEF urls back to old urls

PatrickForum

Good question above.

Great mod. Better than pretty URLs!
But, it doesn't work unless you delete the current .htaccess file first.

And - can you make an update for this mod please?

Mr. Pirate

#1333
Hi, I installed this and I can't seem to get it to work with YAGAM (Yet another Global Announcement Mod). SimpleSEF shortens the announcement url and it shows an error. Can someone help me out?

Thanks

Mr. Pirate

Quote from: Mr. Pirate on November 24, 2011, 10:55:48 PM
Hi, I installed this and I can't seem to get it to work with YAGAM (Yet another Global Announcement Mod). SimpleSEF shortens the announcement url and it shows an error. Can someone help me out?

Thanks

Bump!


Suki

it may help if you actually post the error...

This mod will work with any standard SMF actions and will automatically detect all possible actions added by a mod, have you contacted the yagam's author?
Disclaimer: unless otherwise stated, all my posts are personal and does not represent any views or opinions held by Simple Machines.

Mr. Pirate

#1337
This is the error
An Error Has Occurred!
The page you requested could not be found. Please contact the site administrator if you believe you have reached this page in error.


This is the original url
http://example.com/index.php?action=announcement;aid=2

This is the url SimpleSEF changes the announcement to (Error page)
http://example.com/announcement/aid.2/

Suki

And that url, what is suppose to do?  what's it's purpose?
Disclaimer: unless otherwise stated, all my posts are personal and does not represent any views or opinions held by Simple Machines.

Mr. Pirate

That url is my rules post, which is a global announcement.

Advertisement: