.htaccess rewrite rule to change a path to a query string -


i'm working on project , need rewriting urls...

we have url such

http://www.example.com/page/a-c/ 

i need interpreted server as:

http://www.example.com/file.php?source=a-c 

my .htaccess rewrite skills not great!

this should trick:

rewriteengine on rewritebase /  rewriterule ^page/([^/]+)/? file.php?source=$1 

Comments

Popular posts from this blog

matlab - How to equate a structure array to structure array -

c# - Operator '==' incompatible with operand types 'Guid' and 'Guid' using DynamicExpression.ParseLambda<T, bool> -