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

Login with username, password and session length
News: Check your Page Rank, Backlinks, or Link Popularity in our tools section.
 
  Home   Forum   Help Search Directory Calendar Login Register    RSS 2.0 feedAtom feed


News
Check your Page Rank, Backlinks, or Link Popularity in our tools section.
Pages: 1 [2]
  Print  
Author Topic:

I have a BIG bug

 (Read 18062 times)
0 Members and 1 Guest are viewing this topic.
majo
Jr. Member
**

Points: 0
Offline Offline

Posts: 47


WWW
« Reply #15 on: March 13, 2007, 12:02:12 »

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

That didn't work for me, my hosting is very very dramatic with htaccess files i get blank page if I replace the line.
Logged



TheGodFather
Administrator
Hero Member
*****

Points: 202
Offline Offline

Posts: 2570



WWW
« Reply #16 on: March 14, 2007, 02:09:27 »

That means you made a mistake there ... to be more simple:

search after
(!$context['server']['is_cgi']

and delete !

and tell me if is working !

Regards
Logged

vivsin
Newbie
*

Points: 0
Offline Offline

Posts: 1


« Reply #17 on: May 13, 2007, 09:18:58 »

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


Thank you for the info, my problem got fixed.
Logged
Srki2000
Newbie
*

Points: 0
Offline Offline

Posts: 1


« Reply #18 on: March 02, 2009, 23:51:33 »

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

Thanks GodFather this helped me out.
By the way great mod Smiley
Logged
Pages: 1 [2]
  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!