Forum Moderators: phranque

Message Too Old, No Replies

about url rewrite

url rewrite help?/

         

itsmani1

10:47 am on Mar 18, 2005 (gmt 0)



hi there....

here is the link of the site where i m trying to implement url rewrite

[artologics.com...]

now problem to me when i write this url

[artologics.com...]

it replaces it with

[artologics.com...]

can any one help

what want to do is : it should not replace the url (url that shuld remain same) but system should work as it is working :::

here is my .htaccess

RewriteEngine on
RewriteRule ^catid/([0-9]+)$ /posters/index.php?catid=$1 [R]
ReWriteRule ^pag/([a-z]+)$ /posters/index.php?pag=$1 [R]
ReWriteRule ^pag/css/([a-z]+.[a-z]+)$ /posters/css/$1 [R]
ReWriteRule ^pag/images/([a-z]+_[0-9]+.jpg)$ /posters/images/$1 [R]
ReWriteRule ^/catid/uploads/([a-z]+.jpg)$ /posters/uploads/$1 [R]
ReWriteRule ^catid/css/([a-z]+.[a-z]+)$ /posters/css/$1 [R]
ReWriteRule ^catid/images/([a-z]+_[0-9]+.jpg)$ /posters/images/$1 [R]
ReWriteRule ^/catid/uploads/([a-z]+.jpg)$ /posters/uploads/$1 [R]
RewriteRule ^subcat/([0-9]+)$ /posters/index.php?catid=$1 [R]
ReWriteRule ^subcat/css/([a-z]+.[a-z]+)$ /posters/css/$1 [R]
ReWriteRule ^subcat/images/([a-z]+_[0-9]+.jpg)$ /posters/images/$1 [R]
ReWriteRule ^/subcat/uploads/([a-z]+.jpg)$ /posters/uploads/$1 [R]

jdMorgan

2:51 pm on Mar 18, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



itsmani1,

Welcome to WebmasterWorld!

Try using the [L] flag instead of [R]. Using [R] will generate a 302-Found external redirect, which is not what you want. Your substitution URL format is incorrect for [R] as well; it should be a canonical path (including "http://").

Jim