PDA

View Full Version : Howto disable the URL friendly function


leoyue
04-25-2006, 12:46 AM
the URL friendly function seemed have problem in one of my site.

BTW:(My ISP is 1and1)

Here is the content of .htaccess

RewriteEngine On

RewriteRule ^category/([0-9]+).html/?$ index.php?category=$1 [L]
RewriteRule ^news/([0-9]+).html/?$ index.php?news=$1 [L]
RewriteRule ^news/([^<]+).html/?$ index.php?text=''&news=$1 [L]
RewriteRule ^print/([0-9]+).html/?$ print_version.php?id=$1 [L]
RewriteRule ^comments/([0-9]+).html/?$ index.php?comments=$1 [L]
RewriteRule ^author/([^<]+).html/?$ index.php?author=$1 [L]
RewriteRule ^([^<]+).html/?$ index.php?category_name=$1 [L]
RewriteRule ^cat/([^<]+)/?$ index.php?category_name=$1 [L]

Looks no problem, right? And when I install, it's s also said 'mod_rewrite support Yes'. But,... it dosen't work in one site:

http://wenyiwang.org/

(You can compare with
http://wenyiwang.org/cat/Live%20Organ%20Harvesting%20in%20China/
and
http://wenyiwang.org/index.php?category_name=Live%20Organ%20Harvesting% 20in%20China)

My question is:

1. How to disable the URL friendly function?

2. What's the problem of the mod_rewrite?

Thanks a lot.


Leo

boccio
04-25-2006, 12:31 PM
To disable SE Friendly rewriting, open include/config.php and set $showFriendlyURL = "no";