Home Mod Rewrite file.php? to string
Reply: 0

Mod Rewrite file.php? to string

user773
1#
user773 Published in June 20, 2018, 10:59 pm

I have old site with links like this:

http://domain.com/image.php?690

And I would like to change it into:

http://domain.com/old690

I have tried many different Rules, fe.:

RewriteRule ^image.php?(.+) old$1 [L]

EDIT: All rules looks like:

RewriteEngine On

RewriteRule ^admin/(.*) ninja-admin/$1 [L]

RewriteRule ^index.php$ - [L]

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule . index.php [L]

RewriteRule ^image.php\?(.+) old$1 [L]

What is correct RewriteRule, and why?

You need to login account before you can post.

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

© 2016 Powered by mzan.com design MATCHINFO