i am trying to rewrite urls on WAMP using .htaccess
i want this
to redirect to this
so i have this in my .htaccess
but now all internal links are prefixed with /item/
this
becomes this
this is the first time i am having this kind of issue.,
i have used same config in nginx and it used to work fine on lemp.
but on wamp its screwing all the relative links.
what is wrong ?
i know i can define base url in html, but i want to know what is messing this and why now ?
is it wamp ?
Thanks for your time.
i want this
Code:
www.example.com/item/1234
Code:
www.example.com/item.php?id=1234
Code:
RewriteEngine On RewriteRule ^item/([0-9]+)$ item.php?id=$1 [L]
this
Code:
<link rel="stylesheet" href="css/style.css">
Code:
<link rel="stylesheet" href="item/css/style.css">
i have used same config in nginx and it used to work fine on lemp.
but on wamp its screwing all the relative links.
what is wrong ?
i know i can define base url in html, but i want to know what is messing this and why now ?
is it wamp ?
Thanks for your time.


Comment