RewriteCond with id variable not working
-
Hi,
I wonder is anyone could help me out. I have installed a copy of WordPress locally via XAMPP. I need to be able to rewrite hundreds of urls with different ID’s and redirect them to a different sun directory and add in a file extension.This is what I have :
RewriteCond %{QUERY_STRING} ^type=pdf&id=(.*)$ RewriteRule /?$ /pdf/%1.pdf [L]
This is an example of the entry URL :
https://localhost/wordpress/?type=pdf&id=id00264
and this is what I need :
https://localhost/wordpress/pdf/id00264.pdf
I don’t understand why this doesn’t work ?? Any help would be very much appreciated.
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘RewriteCond with id variable not working’ is closed to new replies.