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: 163

Filed under:
|

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

Related posts about .htaccess

Related posts about mod-rewrite