Go4Expert

Go4Expert (http://www.go4expert.com/)
-   Search Engine Optimization (SEO) (http://www.go4expert.com/forums/seo-forum/)
-   -   URL Rewrite (http://www.go4expert.com/forums/url-rewrite-t17606/)

webwss 19May2009 11:30

URL Rewrite
 
We are trying to get the urls to rewrite and show in the address bar. You can manually type the address of domain.com/category/category-1 into the address bar and it will take you to the appropriate page but redirects to the page with id and does not show the same url in the address bar.
Code:


RewriteRule ^category/category-([0-9]+)/?$ category/index.php?id=1&currentpage=$1&cat=Category [L,NC]


shabbir 19May2009 19:24

Re: URL Rewrite
 
You need to have L, NC at the end and add QSA


All times are GMT +5.5. The time now is 18:36.