php - Using .htaccess to redirect to relative address -


I am very new to rewriting the URL using .htaccess and any person entering the domain below

  http: //domain.tld/admin  

to be redirected

  Http: //domain.tld/index.php? Section = admin  

but without the full address it is the code that I am using but it does not seem to work

  Options- Option option + follow-up links & lt; Ifmodule mod_rewrite.c & gt; RiverwingInRenithbase / Reiterate Rule ^ Admin / IndexFP? Season = adamine & lt; / IfModule & gt;  

Where I am getting wrong

thanks

You can use this more correct regex rule with the L flag:

  option + follow link - rewrite / rewrite rule on the index reassignment engine / Admin /? Index.php? Section = admin [L, QSA, NC]  

Comments