.htaccess - Clean urls with apache htaccess -


how can convert url

 http://example.com/vpage/page.php?number=1&status=completed  

into clean

 http://example.com/1/completed  

so in php page can echo variables 1 , completed.

thanks

try in root/.htaccess

rewriteengine on rewritebase / rewritecond %{request_filename} !-d rewritecond %{request_filename} !-f rewriterule ^([0-9]+)/([a-za-z0]+)/?$ /vpage/page.php?number=$1&status=$2 [qsa,nc,l] 

Comments

Popular posts from this blog

jquery - How do you format the date used in the popover widget title of FullCalendar? -

Bubble Sort Manually a Linked List in Java -

asp.net mvc - SSO between MVCForum and Umbraco7 -