You are not logged in.
Hey,
I've got a problem to get my local apache running correctly. I've got website, which uses a rewrite rule to access pages. The rule itself works, I got it running on another server.
RewriteRule ^(.*).html$ index.php?alias=$1
So it basically redirects any pagename.html requests to index.php?alias=pagename. I've got the website inside a home-public_html folder. Visiting localhost/~userid works like a charm. Also localhost/~userid/index.php?alias=pagename works. However, when I call localhost/~userid/pagename.html I get a 404 page saying:
The requested URL /home/userid/public_html/index.php was not found on this server.
Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.
So it seems like the rewrite-rule is recognized, however, the system-path is put in front instead of localhost/~userid.
The error log says:
[client 127.0.0.1:38713] AH01797: client denied by server configuration
rewrite_mod is loaded, the rule is working.
I just can't see what's missing here...
Offline