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

islam2hamy


Arabic Translator - Web Designer
My Mods / My Themes  //  GfxLand





islam2hamy

error 500 wen the ".htaccess" file is :

   RewriteEngine on
   RewriteRule ^sitemap.xml$ /index.php?action=sitemap;xml

   RewriteCond %{HTTP_USER_AGENT} !FeedBurner
   RewriteRule ^sitemap.xml$ http://feeds2.feedburner.com/smfarabic  [R,L]
   RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule (.*) index.php

Arabic Translator - Web Designer
My Mods / My Themes  //  GfxLand





SlammedDime

Your .htaccess file isn't formatted properly... please see the help section in the SimpleSEF settings and format the rewrite conditions to have the proper line spacing.
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

Mayhem30

Please port this over to 1.1.11  :)

vbgamer45

Be great for SMF 1.1.x. Also note you can probably get this to work with IIS6 if you have http://www.isapirewrite.com which supports .htaccess for IIS6
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

islam2hamy

Quote from: SlammedDime on December 06, 2009, 01:58:49 PM
Your .htaccess file isn't formatted properly... please see the help section in the SimpleSEF settings and format the rewrite conditions to have the proper line spacing.

can you please formate it correct for me

Arabic Translator - Web Designer
My Mods / My Themes  //  GfxLand





SlammedDime

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) index.php
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

Yağız...

Quote from: SlammedDime on December 06, 2009, 02:43:23 AM
Yagiz - what is your collation on the smf_messages database table?
latin1_swedish_ci

SlammedDime

I'm workin on the Turkish issue... I tried setting up a Turkish test site but everything I post in Turkish just shows as ? marks after I post.  Still workin that.
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

Antes

Quote from: SlammedDime on December 06, 2009, 02:51:49 PM
I'm workin on the Turkish issue... I tried setting up a Turkish test site but everything I post in Turkish just shows as ? marks after I post.  Still workin that.

changes not effecting SimpleSEF :/ ,

eg : Forum Name > /forum-name/
if i change it to Other Forum Name , it still /forum-name/ 

SlammedDime

#30
The board names are cached for up to 1 hour, as it's not something that happens regularly... empty your file cache in the SMF admin panel and that will fix the issue. 

I've added this bit to the FAQ on the first page.
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

SlammedDime

Quote from: Yağız... on December 05, 2009, 11:09:29 PM
Nice one SlammedDime but there is a problem with Turkish characters, they aren't shown in the url.
Topic name: ŞşĞğİıÖöÜü
URL: http://localhost/smf2/main-forum/-14.msg24.html
Encoding: ISO-8859-9
I believe I've solved this issue now.  I'd like to send you a revised SimpleSEF.php file to test before I publish it if I may.  If that's okay, please PM me your email address.
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

raing3

Thanks for the great mod, just gave it a try. One problem I would like to report is that when there are 2 boards with the same name it doesn't seem to use an alternate alias for the other boards with the same name.

Ensiferous

This is a "dirty" version of a nginx rewrite config. Ideally one would use try_files but this will work at least. It assumes your forum location is in /forum/


location @forum_missing {
rewrite ^(.*)$ /forum/index.php last;
}

location /forum/ {
error_page      404 = @forum_missing;
}


Then remove the following code from the bottom of ManageSettings.php
Code (php) Select
// We don't want to break boards, so we'll make sure .htaccess or web.config exists with the right info before enabling
if (!empty($_POST['simplesef_enable']))
{
if (strpos($_SERVER['SERVER_SOFTWARE'], 'IIS') !== false && file_exists($boarddir . '/web.config'))
$_POST['simplesef_enable'] = strpos(implode('', file($boarddir . '/web.config')), '<action type="Rewrite" url="index.php" />') !== false ? 1 : 0;
elseif (strpos($_SERVER['SERVER_SOFTWARE'], 'IIS') === false && file_exists($boarddir . '/.htaccess'))
$_POST['simplesef_enable'] = strpos(implode('', file($boarddir . '/.htaccess')), 'RewriteRule (.*) index.php') !== false ? 1 : 0;
else
$_POST['simplesef_enable'] = 0;
}
My Latest Blog Post: Debugging Nginx Errors

SlammedDime

Quote from: raing3 on December 07, 2009, 01:22:33 AM
Thanks for the great mod, just gave it a try. One problem I would like to report is that when there are 2 boards with the same name it doesn't seem to use an alternate alias for the other boards with the same name.
Yea, this is a known 'issue' of sorts... I'm thinking of implementing a workaround that adds a number to the boardname if it already exists, or maybe it's parent name... haven't quite decided which avenue to go down yet.
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

SlammedDime

Ensiferous - Thanks for that. :)
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

Yağız...

Quote from: SlammedDime on December 06, 2009, 11:52:06 PM
Quote from: Yağız... on December 05, 2009, 11:09:29 PM
Nice one SlammedDime but there is a problem with Turkish characters, they aren't shown in the url.
Topic name: ŞşĞğİıÖöÜü
URL: http://localhost/smf2/main-forum/-14.msg24.html
Encoding: ISO-8859-9
I believe I've solved this issue now.  I'd like to send you a revised SimpleSEF.php file to test before I publish it if I may.  If that's okay, please PM me your email address.
Of course, you can send it :)

Boby_

I tried to install the mod - everything was fine until I've tried to activate it.
When I try to put the check and push the save button, nothing happens - the checkbox is empty again and the mod is not active. I've checked all the files by hand - what should be installed was installed. Do you have any idea why this happens?
Is it supposed to happen when there is no Microsoft URL Rewrite or mod_rewrite running on the server or there could be another reason?

Afro

and the major differences between this and the pretty mod is ?

Arantor

Less code changes, probably faster too.

Pretty URLs modifies a lot of code from what I remember - this doesn't make any edits to SMF at all, I believe, other than the admin panel.

Advertisement: