apache - .htaccess issue, getting url -


i'm having issue.

i have vagrant box hosting me url (learnphp.dev)

below .htaccess file

rewriteengine on rewritebase / rewritecond %{request_filename} !-f rewritecond %{request_filename} !-d  rewriterule^(.+)$ index.php?uri=$1 [qsa,l] 

it seems every page go home page. can find code below:

https://github.com/mikerodham/simple-router/tree/master

i'm pretty new php starting out simple things. if provide that'd great.

try replace rewriterule this:

rewriterule^(.+)/$ index.php?uri=$1 [qsa,l] 

taken answer


Comments

Popular posts from this blog

c# - Binding a comma separated list to a List<int> in asp.net web api -

Delphi 7 and decode UTF-8 base64 -

html - Is there any way to exclude a single element from the style? (Bootstrap) -