Home htaccess rewrite for params
Reply: 0

htaccess rewrite for params

user487 Published in June 19, 2018, 6:24 pm

I'm trying to do .htaccess rewrite for example:

http://example.com/abc123 to http://example.com/index.html?code=abc123

The Rule below works for http://example.com/abc123/ (with the trailing /)

RewriteRule "(.*)/$" "/index.php?code=$1"

But when I remove it the trailing / it fails with...

RewriteRule "(.*)$" "/index.php?code=$1"
You need to login account before you can post.

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

© 2016 Powered by mzan.com design MATCHINFO