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

swift - Button on Table View Cell connected to local function -

dns - Dokku server hosts two sites with TLD's, both domains are landing on only one app -

c# - ajax - How to receive data both html and json from server? -