Reputation: 37
I am creating a simple PHP web app. I am using the following .htaccess:
FallbackResource index.php
To use the URL: localhost/Webshop/ localhost/Webshop/Pagename
In the index file I am getting the Request_URI for showing the right page.
Now, the problem is, when I try the following:
localhost/Webshop/Category/1
I am getting an 500 rewrite error.
It's because I think the server can't handle the second part of the url (so the second /)
Am I doing something wrong?
Thanks, Tim
Upvotes: 0
Views: 107
Reputation: 14230
Try this instead:
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
Upvotes: 1