.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

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -

ubuntu - Selenium Node Not Connecting to Hub, Not Opening Port -