1 guizi6 Dec 27, 2008 02:12
3 yabba Dec 27, 2008 09:31
Try :
RewriteCond %{REQUEST_URI} ^/(xiaoping)/?$
RewriteRule ^(xiaoping)/?$ /$1.php [QSA, L]
RewriteCond %{REQUEST_URI} ^/(xiaoping)/(.+)$
RewriteRule ^(xiaoping)/(.+)$ /$1.php?$2 [QSA, L]
¥
4 guizi6 Dec 27, 2008 19:31
Thanks ¥åßßå for looking into this.
I add the code to the .htaccess file and it failed to work. It may be conflicting with other codes. I would get a 500 error at any page once I deployed the code.
5 guizi6 Dec 27, 2008 21:32
¥åßßå, I found the working solution based your recommendation:
RewriteCond %{REQUEST_URI} ^/(xiaoping)/?$
RewriteRule ^(xiaoping)/?$ /$1.phpRewriteCond %{REQUEST_URI} ^/(xiaoping)/(.+)$
RewriteRule ^(xiaoping)/(.+)$ /$1.php?$2 [QSA]
Thanks.
You may view my website here,
http://blogs.vistaview.org/xiaoping/
The first page for a category list:
http://blogs.vistaview.org/xiaoping/guanjing/
The second page and third page URL should be:
http://blogs.vistaview.org/xiaoping/guanjing/?blog=4&cat=17&paged=2
http://blogs.vistaview.org/xiaoping/guanjing/?blog=4&cat=17&paged=3
But it always returns to:
http://blogs.vistaview.org/xiaoping/guanjing/
Could that be something to do with the rewrite setting in the .htaccess file?
Here is what I have for this blog: