Rewrite works but server responds with 404

Alles, was den Apache betrifft, kann hier besprochen werden.

Rewrite works but server responds with 404

Postby beagle11 » 12. August 2017 14:24

Hi everyone,

I have a URL rewrite similar to this

Rewriterule ^member/(.*)$ /members/memberinfo.php?name=$1

Even though it is working, the HTTP response status of the server is 404.

For example when I visit mydomain.com/member/john-may/ I get the correct page but the the browser console shows that the response code to my request is 404.

I assume it has something to do with apache doing the redirect correctly but also trying to find a folder "/member/john-may" and it cannot?

Any ideas?

Thanks in advance.

ps: linux, apache2 2.4
beagle11
 
Posts: 1
Joined: 12. August 2017 14:17
XAMPP version: no
Operating System: lin

Return to Apache

Who is online

Users browsing this forum: No registered users and 293 guests