need .htaccess RewriteRule advise
Posted
by
Abuda Dumiaty
on Stack Overflow
See other posts from Stack Overflow
or by Abuda Dumiaty
Published on 2012-03-20T17:27:14Z
Indexed on
2012/03/20
17:29 UTC
Read the original article
Hit count: 166
.htaccess
|mod-rewrite
I've looked around for an answer to this, no luck.
what i want to do is replace:
http://localhost/mysite/admin/something
with:
http://localhost/mysite/admin/?p=something
Here's the best formula I came up with since yesterday:
RewriteEngine On
RewriteBase /mysite/
RewriteRule ^(superv/)([^\?/]+)$ $1\?p=$2 [NC]
Yet it's not working.
Note:
It think the "RewriteBase" thingy has nothing to do with the problem because this line is working like a charm:
RewriteRule ^(javascripts/main\.js)$ $1\.php [NC]
Any ideas? thanks in advance.
© Stack Overflow or respective owner