How to correct this rewrite rule?
Posted
by
Justin John
on Stack Overflow
See other posts from Stack Overflow
or by Justin John
Published on 2012-09-23T03:35:13Z
Indexed on
2012/09/23
3:37 UTC
Read the original article
Hit count: 176
I have url as
http://www.mydomain.com/levels/home?mode=48bb6e862e54f2a795ffc4e541caed4d
. I need to change this url to http://www.mydomain.com/medium
.
I am not familiar with rewrite url.
I tried with RewriteRule ^medium/?$ levels/home?mode=48bb6e862e54f2a795ffc4e541caed4d
, but not worked correctly.
Full rewrite rule
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^medium/?$ levels/home?mode=48bb6e862e54f2a795ffc4e541caed4d
RewriteRule ^(.*)$ index.php [QSA,L]
© Stack Overflow or respective owner