I did uncomment it.
But it still doesn't work.
I wonder why.
GetFree wrote:Thank you, Izzy. That tutorial is great.
All my problems are solved now. Thank you.
One last question:
What is the difference between "FollowSymLinks" and "+FollowSymLinks"??
That was the reason why my rewrite directive wasn't working.
GetFree wrote:Now that I hid the .php from my public URLs, I want to send a 404 for every request to a .php file.
So I did the following:
RedirectMatch 404 \.php$
which works fine.
But the error page is the default apache error.
I want to show a custom error page, so I tried the following:
RedirectMatch 404 \.php$ /error.html
But it didn't work.
I dont know whether that directive will serve to do what I want.
You were referred from this page: <!--#echo var="HTTP_REFERER" -->
Your IP address shows as: <!--#echo var="REMOTE_ADDR" -->
Your web browser says it is: <!--#echo var="HTTP_USER_AGENT" -->
You requested this page (error): http://<!--#echo var="HTTP_HOST" --><!--#echo var="REQUEST_URI" -->
The HTTP Status (error) Code is: <!--#echo var="REDIRECT_STATUS" -->
# Customizable error responses come in three flavors:
# 1) plain text 2) local redirects 3) external redirects
#
# Some examples:
#ErrorDocument 500 "The server made a boo boo."
#ErrorDocument 404 /missing.html
#ErrorDocument 404 "/cgi-bin/missing_handler.pl"
#ErrorDocument 402 http://www.example.com/subscription_info.html
Users browsing this forum: No registered users and 98 guests