httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From thomas Armstrong <>
Subject [users@httpd] RewriteRule not working, 404 error obtained
Date Tue, 28 Jun 2016 17:03:23 GMT

Using Apache/2.2.31, I created the following rule on my '.htaccess' file:
RewriteEngine on
RewriteRule ^([^/]+)/$ /do.php?label=$1 [L]

However, when accessing '', I get a 404 error
message. I've checked my error log and:
[Mon Jun 27 11:12:15 2016] [error] [client] File does not
exist: /path-to-web/whatever, referer:

'' works ok, and '' works
ok as well.

I've checked phpinfo, and 'mod_rewrite' is loaded in Apache. Additionally,
I tried to enable it via 'http.conf', but Apache tells me that "module
rewrite_module is built-in and can't be loaded".

What am I doing wrong? This same '.htaccess' works ok in two other Apache

I tried with "Options +FollowSymLinks -MultiViews" as well. Thank you very

View raw message