News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

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

nend

Quote from: piplexi on April 26, 2010, 02:35:10 AM
got everything working. Thanks again.

I installed the googletag mod, because I thought it helps a bit SEO wise.

I switched from phpbb to smf a few month ago and Searchengine traffic decreased dramatically since then.
Even now a few months later there are still a lot of phpbb links indexed on google and barely any SMF Links.
Last week I've deleted the robots.txt (just used it to avoid indexing the "print" Pages).
It seems that now after I deleted the robots.txt, indexing works much better. Maybe I had some errors in it.

Anyway, so you think the googletag mod is not helping to get a better ranking in search engines?
Then I will remove it.

Lets not turn this into a SEO topic, but if don't already create a sitemap. It helps a ton. ;)

Arantor

This mod doesn't have any actual ranking benefit...
Holder of controversial views, all of which my own.


nend

Quote from: Arantor on April 26, 2010, 11:29:32 AM
This mod doesn't have any actual ranking benefit...

lol, quite agree. The mod does not do anything that third party services like Google do for free. Google Analytics gives a much better report though.

nend

Ok so I was trying to troubleshoot some server performance issues. Will I found this article, well me not knowing much about mod-rewrite, well the article said you need to set FollowSymLinks on when you use mod-rewrite, this is a must do according to the article.

Quote from article
QuoteNOTE: Any htaccess rewrite examples should always begin with:
Options +FollowSymLinks
RewriteEngine On
RewriteBase /

Well then I did a search and found out if this setting is not on when you use mod rewrite the server will never cache the location according to this other article and will basically search for the location

Quote from article.
QuoteIf FollowSymlinks is NOT set at all, Apache has to issue some extra system calls when looking for a file. For example, if you browse to the /index.html document, Apache would look for that file in your /www, /www/htdocs, and /www/htdocs/index.html. These additional system calls will add to the latency. The system call results are not cached, so they will occur on every request.

Then I did another search and found this at the apache website.
QuoteThe rewrite engine may be used in .htaccess  files. To enable the rewrite engine for these files you need to set "RewriteEngine On" and "Options FollowSymLinks" must be enabled.

So I added those three lines of code to my .htaccess right above the code that SimpleSEF uses and wow, my pages are loading under a second. I was having load times over a minute, but nothing to do with MySql or running PHP processes. I sort of pointed the finger at mod-rewrite and went to digging into the cause of the problem.

Do you think this may be the cause?

Sites
http://www.angelmonticelli.com.ar/2010/03/ultimate-htaccess-code-snippets/
http://www.maxi-pedia.com/FollowSymLinks
http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html

SlammedDime

#624
I've never had any issues without using FollowSymLinks.  Good info you have there though, I'll add it to the next version as it surely won't hurt anything... I don't really see how this would cause long load times though... even without cached results.

Edit to add: most hosts, if they are smart, will already have this enabled, so in most cases it won't even be necessary and redundant.
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

rölyef

Thanks   for the nice mod.

Simple Sef converter for Pretty Urls?
Please.

Bob Marley

Do i need to make some custom edit to the code to use simpleSEF with SimplePortal? My smf is 1.1.11


Am'

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

SyNiK4L

how can i manually uninstall this from my ftp cus im locked out my website getting 404 errors first and now getting 500 errors because i didnt do the .htaccess part first and then i automatically got loged out and now i cant log back in to uninstall it or turn it off

SlammedDime

Just rename or delete Sources/SimpleSEF.php
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

Xarcell

Does anyone know why this doesn't work with Tinyportal?

~DS~

#632
SlammedDime, I created a html block using simpleportal.
Some of those links I created within in the block takes me to homepage instead of that link when clicked.
"There is no god, and that's the simple truth. If every trace of any single religion were wiped out and nothing were passed on, it would never be created exactly that way again. There might be some other nonsense in its place, but not that exact nonsense. If all of science were wiped out, it would still be true and someone would find a way to figure it all out again."
~Penn Jillette – God, NO! – 2011

Arantor

Quote from: Xarcell on May 08, 2010, 04:38:34 PM
Does anyone know why this doesn't work with Tinyportal?

What happens if you try it with TinyPortal? I mean, does it explosively combust, or does something minor go wrong?
Holder of controversial views, all of which my own.


SlammedDime

Sorry Xarcell, I haven't had time to play with it...

Can you (as Arantor said), explain how it 'doesnt work'?
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

SlammedDime

Quote from: Dismal Shadow on May 08, 2010, 05:05:05 PM
SlammedDime, I created a html block using simpleportal.
Some of those links I created within in the block takes me to homepage instead of that link when clicked.
link to a live version?  If not, what is the url in the block as you entered it, and how did the mod reformat it?
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

Am'

Quote from: Am' on April 08, 2010, 05:37:32 AM
Quote from: Am' on April 03, 2010, 05:04:09 AM
Quote from: feline on March 21, 2010, 11:07:33 AM
Quote from: Arantor on March 20, 2010, 06:11:27 PM
Dime: Found you a new bug in SSEF 1.0.3 and SMF 2.0 RC3. If you have a board with lots of pages in it and the pageindex gets the ... in it, when you click to expand, the generated URLs are all incorrect (and invalid, I think)
This you can simple fix .. search for:
// Gotta fix up some javascript laying around in the templates
$extra_replacements = array(
'/rand,' => '/rand=',
$boardurl . '/topic/' => $scripturl . '?topic=',
'var smf_scripturl = "' . $boardurl . '/' => 'var smf_scripturl = "' . $scripturl,
);


Change to:

// Gotta fix up some javascript laying around in the templates
$extra_replacements = array(
'%1/$d' => '%1$d',
'/rand,' => '/rand=',
$boardurl . '/topic/' => $scripturl . '?topic=',
'var smf_scripturl = "' . $boardurl . '/' => 'var smf_scripturl = "' . $scripturl,
);


Now the pageindex works  ;)

Fel

it's fixed in memberlist, but not in display messages and sitemap

when i click a number  i have this url :

http://localhost/Forum/NameBoard/NameTopic_20195.%1.html$d

any fix please ?

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

~DS~

Quote from: SlammedDime on May 08, 2010, 05:19:55 PM
Quote from: Dismal Shadow on May 08, 2010, 05:05:05 PM
SlammedDime, I created a html block using simpleportal.
Some of those links I created within in the block takes me to homepage instead of that link when clicked.
link to a live version?  If not, what is the url in the block as you entered it, and how did the mod reformat it?
This is a example:
http://thetwoworldsforum.com/help/ (Clicking some of these links in "Introduction" redirect to homepage.)

<a href="http://thetwoworldsforum.com/index.php/topic,717.0.html"> Interesting in supporting the Community?</a>


SEF converts to:
<a href="http://thetwoworldsforum.com/ Interesting in supporting the Community?</a>
"There is no god, and that's the simple truth. If every trace of any single religion were wiped out and nothing were passed on, it would never be created exactly that way again. There might be some other nonsense in its place, but not that exact nonsense. If all of science were wiped out, it would still be true and someone would find a way to figure it all out again."
~Penn Jillette – God, NO! – 2011

SlammedDime

Am' - I haven't had a chance to look at that further yet

Dismal - the link you input is SMF's style of sef url... you need to use SMF's native urls...

http://thetwoworldsforum.com/index.php/topic,717.0.html
to
http://thetwoworldsforum.com/index.php?topic=717.0
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

~DS~

Quote from: SlammedDime on May 08, 2010, 07:40:41 PM
Am' - I haven't had a chance to look at that further yet

Dismal - the link you input is SMF's style of sef url... you need to use SMF's native urls...

http://thetwoworldsforum.com/index.php/topic,717.0.html
to
http://thetwoworldsforum.com/index.php?topic=717.0
You mean I have to edit all links on the forums and remove . html?
"There is no god, and that's the simple truth. If every trace of any single religion were wiped out and nothing were passed on, it would never be created exactly that way again. There might be some other nonsense in its place, but not that exact nonsense. If all of science were wiped out, it would still be true and someone would find a way to figure it all out again."
~Penn Jillette – God, NO! – 2011

Advertisement: