user3249696
user3249696

Reputation: 37

PHP Apache rewrite 500 error

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

Answers (1)

dan-klasson
dan-klasson

Reputation: 14230

Try this instead:

Options +FollowSymLinks
RewriteEngine On

RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]

Upvotes: 1

Related Questions