October 26, 2014, 09:26:09 *
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] 2 3 ... 9
  Print  
Author Topic:

Testing your site to see if seo4smf is working for you

 (Read 84318 times)
0 Members and 1 Guest are viewing this topic.
TheGodFather
Administrator
Hero Member
*****

Points: 202
Offline Offline

Posts: 2468



WWW
« on: November 25, 2006, 20:23:26 »

Hi,

 I discovered a lot of webhosts what are not working with Seo4SMF and with "Search engine friendly URLs" SMF options.
 To see if your site is compatible with this options just enable "Search engine friendly URLs" from "Features and Options" from your SMF Admin Area. If your urls will look like http://domain.com/topic,1.0.html then all is ok. If is looking like http://domain.com/index.php?topic=1.0 then it will not work.

 Why is not working ?

 Are 2 possibilities :

 1. Your webhost had changed the name of the webserver. To work the webserver need to be APACHE !!!
 How to see what webserver is running ?

Code:
telnet yourhost.com 80
HEAD / HTTP/1.0 <-- press enter twice

HTTP/1.1 200 OK
Date: Sat, 25 Nov 2006 19:04:30 GMT
Server: Apache 2.0.54  PHP/4.4.4-1
Last-Modified: Thu, 28 Sep 2006 02:33:48 GMT
ETag: "1b183db-b2c-451b348c"
Accept-Ranges: bytes
Content-Length: 2860
Connection: close
Content-Type: text/html

If  Server: is Apache then all is ok. Anyway I see several host what are reporting WebserverX or whatever ...

2. Your host have php installed as cgi and not like module for apache. SMF is checking if you have ini_get('cgi.fix_pathinfo') ==1  and if is not then you cannot run Seo4SMF or "Search engine friendly URLs". I didn't check this in SMF sources to see why SMF need that option. Anyway if I remove this options it seems SMF is working well.

Regards
Logged

DoFollow Directory. Nofollow free links (http://www.dofollow.us/)
Hostmaster Web Tools  (http://www.hostmasterwebtools.com)
Webmaster Web Tools (http://www.webmasterwebtools.com)


Nite
Jr. Member
**

Points: 0
Offline Offline

Posts: 55



WWW
« Reply #1 on: December 11, 2006, 07:44:56 »

It's not on. Because your host is using PHP-CGI. SMF doesn't like php-cgi and is disabling "Search engine friendly URLs" from your admin area.

SMF is checking if you have ini_get('cgi.fix_pathinfo') ==1  and if is not then you cannot run Seo4SMF or "Search engine friendly URLs"

To workaround this problem just look in QueryString.php after this line
Code:
if (!empty($modSettings['queryless_urls']) && (!$context['server']['is_cgi'] || @ini_get('cgi.fix_pathinfo') == 1) && $context['server']['is_apache'])

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


Test and see if is working ... just remember to backup your files before any modification.

Regards

I just wanted to bring special attention to your thread about QueryString.php

I changed QueryString.php according to your instructions and, additionally, I have edited my php.ini to include:

Code:
cgi.fix_pathinfo="1"

I haven't installed this mod again, yet.. I'll install it when I have more time.
Logged

The Simple Machines Forum Directory (http://www.smfoogle.com) :: The phpBB Forum Directory (http://www.phpbboogle.com)
The Invision Power Board Forum Directory (http://www.ipboogle.com) :: The vBulletin Forum Directory (http://www.vboogle.net)
TheGodFather
Administrator
Hero Member
*****

Points: 202
Offline Offline

Posts: 2468



WWW
« Reply #2 on: December 11, 2006, 09:03:56 »

Not all the people have access to their php.ini file. Anyway is more normal to edit php.ini than changeing the sources.

Thanks

Regards
Logged

DoFollow Directory. Nofollow free links (http://www.dofollow.us/)
Hostmaster Web Tools  (http://www.hostmasterwebtools.com)
Webmaster Web Tools (http://www.webmasterwebtools.com)
zofran
Jr. Member
**

Points: 0
Offline Offline

Posts: 30


« Reply #3 on: December 15, 2006, 22:33:41 »

my php is installed as a cgi-mod. Isn't there any way to use this mod?
Logged
TheGodFather
Administrator
Hero Member
*****

Points: 202
Offline Offline

Posts: 2468



WWW
« Reply #4 on: December 15, 2006, 23:14:21 »

Read this message http://www.webmasterstalks.com/seo-4-smf/i-have-a-big-bug-t837.0.html;msg4679#msg4679

I installed this mod in several servers with php_cgi and is working. If you have access to php.ini try to set cgi.fix_pathinfo.

Anyway if you don't have access just try my modification from above url.

Regards
Logged

DoFollow Directory. Nofollow free links (http://www.dofollow.us/)
Hostmaster Web Tools  (http://www.hostmasterwebtools.com)
Webmaster Web Tools (http://www.webmasterwebtools.com)
zofran
Jr. Member
**

Points: 0
Offline Offline

Posts: 30


« Reply #5 on: December 16, 2006, 00:11:13 »

I changed that [is_apache] stuff now my url look like topic123,0.html but mod does not work. I have a reseller account , I don't have a permission to edit cgi path stuff
« Last Edit: December 16, 2006, 00:14:35 by zofran » Logged
TheGodFather
Administrator
Hero Member
*****

Points: 202
Offline Offline

Posts: 2468



WWW
« Reply #6 on: December 16, 2006, 00:27:33 »

From what point of view is not working ? Is enabled ? Just send me a link from you site.

Regards
Logged

DoFollow Directory. Nofollow free links (http://www.dofollow.us/)
Hostmaster Web Tools  (http://www.hostmasterwebtools.com)
Webmaster Web Tools (http://www.webmasterwebtools.com)
zofran
Jr. Member
**

Points: 0
Offline Offline

Posts: 30


« Reply #7 on: December 16, 2006, 00:33:02 »

For example my urls now look like
http://www.domain.tld/index.php/board,17.0.html

But mod should convert them in to
http://www.domain.tld/music

right?
Logged
TheGodFather
Administrator
Hero Member
*****

Points: 202
Offline Offline

Posts: 2468



WWW
« Reply #8 on: December 16, 2006, 00:44:46 »

Did  you enable the mod from seo4smf admin panel ?

Regards
Logged

DoFollow Directory. Nofollow free links (http://www.dofollow.us/)
Hostmaster Web Tools  (http://www.hostmasterwebtools.com)
Webmaster Web Tools (http://www.webmasterwebtools.com)
zofran
Jr. Member
**

Points: 0
Offline Offline

Posts: 30


« Reply #9 on: December 16, 2006, 00:55:06 »

yep but now 404 error code appears.
Logged
Nite
Jr. Member
**

Points: 0
Offline Offline

Posts: 55



WWW
« Reply #10 on: December 16, 2006, 01:01:59 »

Did you edit your .htaccess correctly ?
Logged

The Simple Machines Forum Directory (http://www.smfoogle.com) :: The phpBB Forum Directory (http://www.phpbboogle.com)
The Invision Power Board Forum Directory (http://www.ipboogle.com) :: The vBulletin Forum Directory (http://www.vboogle.net)
zofran
Jr. Member
**

Points: 0
Offline Offline

Posts: 30


« Reply #11 on: December 16, 2006, 01:03:56 »

RewriteBase /

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 [R=301,L]

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]

#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=1&board=$2.$3 [L]
RewriteRule ^(.*)-b([0-9]*).([0-9]) index.php?dummy=1&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&$5 [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]*)$ 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]

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

my .htaccess is this.
Logged
TheGodFather
Administrator
Hero Member
*****

Points: 202
Offline Offline

Posts: 2468



WWW
« Reply #12 on: December 16, 2006, 01:04:16 »

Enable Rewritebase for your forum.

Regards
Logged

DoFollow Directory. Nofollow free links (http://www.dofollow.us/)
Hostmaster Web Tools  (http://www.hostmasterwebtools.com)
Webmaster Web Tools (http://www.webmasterwebtools.com)
TheGodFather
Administrator
Hero Member
*****

Points: 202
Offline Offline

Posts: 2468



WWW
« Reply #13 on: December 16, 2006, 01:05:02 »

You have mod_rewrite enabled ?

Regards
Logged

DoFollow Directory. Nofollow free links (http://www.dofollow.us/)
Hostmaster Web Tools  (http://www.hostmasterwebtools.com)
Webmaster Web Tools (http://www.webmasterwebtools.com)
zofran
Jr. Member
**

Points: 0
Offline Offline

Posts: 30


« Reply #14 on: December 16, 2006, 01:17:30 »

how can i do that?
Logged
Pages: [1] 2 3 ... 9
  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!