Forum Moderators: phranque

Message Too Old, No Replies

rewrite url

         

canabatz

7:42 am on Aug 29, 2012 (gmt 0)

10+ Year Member



hi,

i got this url:

www.world-status.com/&page=2


how can i make it like that:

www.world-status.com/page/2

i got this at the moment:

RewriteRule ^([^/.]+)/?$ /index.php?cat_id=$1

RewriteCond %{HTTP_HOST} ^world-status.com
RewriteRule (.*) [world-status.com...] [R=301,L]

RewriteCond %{THE_REQUEST} \/index.php\ HTTP [NC]
RewriteRule (.*)index.php$ /$1 [R=301,L]

thanks

g1smd

12:55 pm on Aug 29, 2012 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Ampersand and equals are not valid in URL path . Did you mean query string?

Ruleset order is exactly backwards. Index redirect should be first, rewrite last.

Pattern doesn't match the wanted URL.

Escape all literal periods in patterns.

Both redirects should include protocol and hostname in target.

The rewrite needs the [L] flag.