Home Redirect URL with query string to different file and maintain query string
Reply: 0

Redirect URL with query string to different file and maintain query string

user855
1#
user855 Published in August 15, 2018, 5:36 am

I have old URLs that use the following: mydomain.com/?page=article&cid=149&aid=1554

I had to change the name of the old index.php (which that URL above 'used'), for various reasons... and the file name is now index_180311.php. So those old links no longer work. The query string that does not change is the 'page=' part... the rest can be variable.

So what mod rewrite command would I need to make old URLs with the 'page=' query string get redirected to the new file name/path at: mydomain.com/index_180311.php?page=article&cid=149&aid=1554

so that they work again? I've searched the boards and tried altering other htaccess commands from other threads, but have not been successful (it usually ends up crashing my whole site), as I think I created infinite loops.

Thanks much in advance.

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.297062 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO