I'm running Windows 7 xampp server
it has Apache
and it has lines that are needed to uncomment to work fine.
However when I try to use RewriteRule
I bump into the problem.
When I write wrong code at the start of htaccess it throws error 500, there are few commands that works, but when I use RewriteRule it simply ignore that part , unless if I write something syntax wise wrong then it reacts as error, but i have never seen my link changed.
.htaccess file is placed at myDomain directory
Can it possibly be issue of software or it's my code?
I have this dynamic link:
http://localhost//myDomain/folder/ad.php?title=theTitle&id=1
and I need to get this:
http://localhost//myDomain/folder/theTitle/1
My htaccess file looks like this:
RewriteEngine on
RewriteBase /myDomain/folder
RewriteCond %{REQUEST_URI} ^/ad.php$ [NC]
RewriteCond %{QUERY_STRING} ^title=(.*)&id=(.*)$
RewriteRule (.*) http://localhost/myDomain/folder/%1/%2.aspx? [R=301,L]
Any help would be highly honored :)