February 10, 2012, 17:32:14 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Please support SEO4smf further development donating here or use paypal button from left menu.
 
  Home   Forum   Help Search Directory Calendar Login Register    RSS 2.0 feedAtom feed


News
Please support SEO4smf further development donating here or use paypal button from left menu.
Pages: 1 ... 6 7 [8] 9 10
  Print  
Author Topic:

Testing your site to see if seo4smf is working for you

 (Read 68694 times)
0 Members and 2 Guests are viewing this topic.
Sindorf
Jr. Member
**

Points: 0
Offline Offline

Posts: 64


« Reply #105 on: February 08, 2007, 04:11:56 »

I have found a solution for SMF's integrated Queryless URL's (and also SEO4SMF) to work

Just open your QueryString.php

Find this:

Code:
// This should work even in 4.2.x, just not CGI without cgi.fix_pathinfo.
if (!empty($modSettings['queryless_urls']) && (!$context['server']['is_cgi'] || @ini_get('cgi.fix_pathinfo') == 1) && $context['server']['is_apache'])
{
// Let's do something special for session ids!
if (defined('SID') && SID != '')
$buffer = preg_replace('/"' . preg_quote($scripturl, '/') . '\?(?:' . SID . ';)((?:board|topic)=[^#"]+?)(#[^"]*?)?"/e', "'\"' . \$scripturl . '/' . strtr('\$1', '&;=', '//,') . '.html?' . SID . '\$2\"'", $buffer);
else
$buffer = preg_replace('/"' . preg_quote($scripturl, '/') . '\?((?:board|topic)=[^#"]+?)(#[^"]*?)?"/e', "'\"' . \$scripturl . '/' . strtr('\$1', '&;=', '//,') . '.html\$2\"'", $buffer);
}

and change with this

Code:
// This should work even in 4.2.x, just not CGI without cgi.fix_pathinfo.
// if (!empty($modSettings['queryless_urls']) && (!$context['server']['is_cgi'] || @ini_get('cgi.fix_pathinfo') == 1) && $context['server']['is_apache'])
// {
// Let's do something special for session ids!
if (defined('SID') && SID != '')
$buffer = preg_replace('/"' . preg_quote($scripturl, '/') . '\?(?:' . SID . ';)((?:board|topic)=[^#"]+?)(#[^"]*?)?"/e', "'\"' . \$scripturl . '/' . strtr('\$1', '&;=', '//,') . '.html?' . SID . '\$2\"'", $buffer);
else
$buffer = preg_replace('/"' . preg_quote($scripturl, '/') . '\?((?:board|topic)=[^#"]+?)(#[^"]*?)?"/e', "'\"' . \$scripturl . '/' . strtr('\$1', '&;=', '//,') . '.html\$2\"'", $buffer);
// }

This is tested, and working fine in all PHP_CGI setups Smiley

(I am sorry for repeating, if this is given in somewhere else in this forum)
Logged


TheGodFather
Administrator
Hero Member
*****

Points: 202
Offline Offline

Posts: 2570



WWW
« Reply #106 on: February 08, 2007, 04:31:10 »

Something similar is already here : http://www.webmasterstalks.com/seo-4-smf/i-have-a-big-bug-t837.0.html;msg4679#msg4679

Smiley

Regards and Thanks
Logged

Sindorf
Jr. Member
**

Points: 0
Offline Offline

Posts: 64


« Reply #107 on: February 08, 2007, 04:35:33 »

The solution you have given is more easier Smiley I have noted that solution also Smiley

Thanks Smiley
« Last Edit: February 08, 2007, 06:37:17 by Sindorf » Logged
stefanstp
Newbie
*

Points: 0
Offline Offline

Posts: 3


« Reply #108 on: March 15, 2007, 11:25:58 »

on my site http://www.polizei-weblog.de/forum.html i have mod-rewrite and install the paket seo4smf and i have enabled this module. but its not work on this site. the url show not beautiful. this is my .htaccess

Code:
RewriteEngine on

#Some apache servers need Rewritebase.
#delete # from start of Rewrite base to enable it.
#If your forum is something like http://www.forum-example.com/forum then modify your
#RewriteBase in this way: RewriteBase /forum

RewriteBase /smf

#Archive/Sitemaps
RewriteRule ^sitemaps-([a-zA-Z0-9-]*)\.html index.php?dummy=1&action=seo4smfsitemaps&sa=$1 [L]

#uncomment if you use beautifying url actions
#RewriteCond %{REQUEST_METHOD} =GET
#RewriteCond %{QUERY_STRING} ^action=(.*)$
#RewriteRule  ^(.*)$ seo4smf-redirect.php?a=%1 [R=301,L]

RewriteCond %{QUERY_STRING} ^topic=([0-9]*)$
RewriteRule  ^(.*)$ seo4smf-redirect.php?t=%1 [R=301,L]

RewriteCond %{QUERY_STRING} ^topic=([0-9]*).([0-9]*)
RewriteRule  ^(.*)$ seo4smf-redirect.php?t=%1 [R=301,L]

RewriteCond %{QUERY_STRING} ^board=([0-9]*).([0-9]*)
RewriteRule  ^(.*)$ seo4smf-redirect.php?b=%1 [R=301,L]

RewriteCond %{QUERY_STRING} ^action=profile;u=([0-9]*);(.*)$
RewriteRule  ^(.*)$ seo4smf-redirect.php?u=%1;param=%2 [R=301,L]

RewriteCond %{QUERY_STRING} ^action=profile;u=([0-9]*)
RewriteRule  ^(.*)$ seo4smf-redirect.php?u=%1 [R=301,L]

#Tiny Portal Old Url's
RewriteCond %{QUERY_STRING} ^page=([0-9]*)
RewriteRule  ^(.*)$ seo4smf-redirect.php?p=%1 [R=301,L]

#Rewrite Old urls
RewriteRule  ^index.php/board,(.*).html seo4smf-redirect.php?b=$1 [R=301,L]
RewriteRule  ^index.php/board,(.*).html;(.*) seo4smf-redirect.php?b=$1&o=$2 [R=301,L]

RewriteRule  ^index.php/topic,(.*).html seo4smf-redirect.php?t=$1 [R=301,L]
RewriteRule  ^index.php/topic,(.*).html;(.*) seo4smf-redirect.php?t=$1&o=$2 [R=301,L]

#Bad Url's
#RewriteCond %{REQUEST_URI} ^(.*)\.html$
#RewriteCond %{REQUEST_URI} !^(.+)/(.*)-t([0-9]*)\.([0-9]*).html$
#RewriteRule ^(.*)-t([0-9]*)\.([0-9]*)\.html seo4smf-redirect.php?t=$2 [R=301,L]

RewriteRule  ^(.*)/-t(.*).html seo4smf-redirect.php?t=$2 [R=301,L]
RewriteRule  ^-b(.*)/$ seo4smf-redirect.php?b=$1 [R=301,L]
RewriteRule  ^-b(.*)/(.*)$ seo4smf-redirect.php?b=$1 [R=301,L]
RewriteRule  ^(.*)/-b(.*)/$ seo4smf-redirect.php?b=$2 [R=301,L]

#New board URL's
RewriteRule ^(.*)-b([0-9]*)\.([0-9]*)/;(.*) index.php?dummy=1&board=$2.$3&$4 [L]
RewriteRule ^(.*)-b([0-9]*)\.([0-9]*)/$ index.php?dummy=2&board=$2.$3 [L]
RewriteRule ^(.*)-b([0-9]*)\.([0-9])$ index.php?dummy=2&board=$2.$3 [L]

#New topic URL's
RewriteRule ^(.*)-t([0-9]*)\.([0-9]*)\.html;((\?:from|msg|new)[0-9]*);(.*)$ index.php?dummy=1&topic=$2.$4&$6 [L]
RewriteRule ^(.*)-t([0-9]*)\.([0-9]*)\.html;((\?:from|msg|new)[0-9]*) index.php?dummy=1&topic=$2.$4 [L]
RewriteRule ^(.*)-t([0-9]*)\.([0-9]*)\.html;(.*)$ index.php?dummy=1&topic=$2.$3&$4 [L]
RewriteRule ^(.*)-t([0-9]*)\.([0-9]*)\.html$ index.php?dummy=1&topic=$2.$3 [L]

#New profiles URL's
RewriteRule ^(.*)-u([0-9]*)\.html;sa,(.*);start,([0-9]*);delete,([0-9]*);sesc,([a-z0-9]*)$ index.php?dummy=1&action=profile;u=$2;sa=$3;start=$4;delete=$5;sesc=$6 [L]
RewriteRule ^(.*)-u([0-9]*)\.html;sa,(.*);start,([0-9]*)$ index.php?dummy=1&action=profile;u=$2;sa=$3;start=$4 [L]
RewriteRule ^(.*)-u([0-9]*)\.html;sa,(.*)$ index.php?dummy=1&action=profile;u=$2;sa=$3 [L]
RewriteRule ^(.*)-u([0-9]*)\.html index.php?dummy=1&action=profile;u=$2 [L]

#New Tinyportal Articles URL's
RewriteRule ^(.*)-p([0-9]*)\.html index.php?dummy=1&page=$2 [L]

#New action Url's - uncomment if you use beautifying url actions
#RewriteRule ^(.*)\.html(.*)$ index.php?dummy=1;action=$1;$2 [L]
#RewriteRule ^(.*)\.html$ index.php?dummy=1;action=$1 [L]

#Sitemaps
RewriteRule sitemap.xml sitemaps.php [L]
RewriteRule urllist.txt urllist.php [L]

what can i do?
« Last Edit: March 15, 2007, 11:27:39 by stefanstp » Logged
TheGodFather
Administrator
Hero Member
*****

Points: 202
Offline Offline

Posts: 2570



WWW
« Reply #109 on: March 16, 2007, 04:06:11 »

Look if you have php_cgi installed ... this is one of the most problems ...

Regards
Logged

stefanstp
Newbie
*

Points: 0
Offline Offline

Posts: 3


« Reply #110 on: March 16, 2007, 04:25:29 »

now seo4smf runs correkt, but    
special character are not work. looks here in my german site:

http://www.polizei-weblog.de/smf/index.php

can you help me?
Logged
TheGodFather
Administrator
Hero Member
*****

Points: 202
Offline Offline

Posts: 2570



WWW
« Reply #111 on: March 16, 2007, 04:27:45 »

Why are not correct ? Did you enable "Remove accented chars" ?

Regards
Logged

stefanstp
Newbie
*

Points: 0
Offline Offline

Posts: 3


« Reply #112 on: March 16, 2007, 05:18:49 »

thanks! now is't work perfect!
Logged
ladynada
Newbie
*

Points: 0
Offline Offline

Posts: 1


« Reply #113 on: April 07, 2007, 14:59:06 »

I just read the message here and checked my board, and it had the funky message urls

so I searched on the support board for hostgator (my host) and they have a fix

and it worked



Re
SMF SEF Problem
Ok I just fixed the problem myself
due to the help I got on a different forum.

Here's what you have to do:

In Sources, look for QueryStrings.php

Save a copy onto your hard drive incase you screw up, look for

Quote:
if (!empty($modSettings['
queryless_urls']) && (!$context['server']['is_cgi'] || @ini_get('cgi.fix_pathinfo') == 1) && $context['server']['is_apache'])

And replace it with:

Quote:
elseif (!empty($modSettings['
queryless_urls]))

It worked for me



it worked for me too

nada


Logged
TheGodFather
Administrator
Hero Member
*****

Points: 202
Offline Offline

Posts: 2570



WWW
« Reply #114 on: April 09, 2007, 04:23:57 »

I'm glad to hear that !

Regards
Logged

Hendricius
Jr. Member
**

Points: 0
Offline Offline

Posts: 30



WWW
« Reply #115 on: April 09, 2007, 04:33:07 »

I just read the message here and checked my board, and it had the funky message urls

so I searched on the support board for hostgator (my host) and they have a fix

and it worked



Re
SMF SEF Problem
Ok I just fixed the problem myself
due to the help I got on a different forum.

Here's what you have to do:

In Sources, look for QueryStrings.php

Save a copy onto your hard drive incase you screw up, look for

Quote:
if (!empty($modSettings['
queryless_urls']) && (!$context['server']['is_cgi'] || @ini_get('cgi.fix_pathinfo') == 1) && $context['server']['is_apache'])

And replace it with:

Quote:
elseif (!empty($modSettings['
queryless_urls]))

It worked for me



it worked for me too

nada




I do not recommend anyone to do that. You will get badass SQL-Errors simply to this small fix:
Quote
if (!empty($modSettings['queryless_urls']) && (!$context['server']['is_cgi'] || @ini_get('cgi.fix_pathinfo') == 1) && $context['server']['is_apache'])
and replace with:
Quote
if (!empty($modSettings['queryless_urls']) && ($context['server']['is_cgi'] || @ini_get('cgi.fix_pathinfo') == 1) && $context['server']['is_apache'])
Logged

jackj
Newbie
*

Points: 0
Offline Offline

Posts: 4


« Reply #116 on: April 10, 2007, 14:24:56 »

Ok somewhere in this thread I think there may have been a fix for my problem , but could someone reiterate...

All is working fine, except for threads with more than one page.  When you click on page 2 it goes back to page 1 instead.

http://americananglers.net/forum/bass_fishing/aaff_paper_tourney-t2504.0.html is an example.  Click page 2 and check it out.  Goes back to 1.

What was the fix?

Im using ver 0.2.9.6 by the way.

It should rewrite to ...
http://americananglers.net/forum/bass_fishing/aaff_paper_tourney-t2504.20.html
but instead it goes back to ...
http://americananglers.net/forum/bass_fishing/aaff_paper_tourney-t2504.0.html
« Last Edit: April 10, 2007, 14:52:48 by jackj » Logged
TheGodFather
Administrator
Hero Member
*****

Points: 202
Offline Offline

Posts: 2570



WWW
« Reply #117 on: April 11, 2007, 10:39:49 »

Are 2 possible reasons:

1. you have php_cgi
2. "Search engine friendly URLs" are not enabled in "Features and Options"


Regards
Logged

jackj
Newbie
*

Points: 0
Offline Offline

Posts: 4


« Reply #118 on: April 11, 2007, 12:26:33 »

Search engine friendly urls is enabled, and I do have another forum that SEO4SMF works perfectly on the same server, so I wouldnt think the php_cgi would be it.

What does the script change in index.template.php?   I'm thinking it may be another mod keeping it from working.
Logged
TheGodFather
Administrator
Hero Member
*****

Points: 202
Offline Offline

Posts: 2570



WWW
« Reply #119 on: April 11, 2007, 16:42:03 »

Yes is changeing in index.template.php ... but is working without ... Smiley If you have your theme my mod doens't change it ...

Regards
Logged

Pages: 1 ... 6 7 [8] 9 10
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.7 | SMF © 2006-2008, Simple Machines LLC
TinyPortal v0.9.7 © Bloc
Valid XHTML 1.0! Valid CSS!