Hi,
I am looking for a way to send all users for my site that type in a URL that doesn't exist to be sent to a certain page (instead of getting a 404 message), from where they can get to where they need. I searched some sites, and apparently I need to modify my .htaccess file, although I have no idea how. Could someone help me out here?
currently it looks like this:
and the code I found was this:
But how do I use it?
P.S. don't visit any other page of that site, it totally srews up Google Analytics, last time I had stats with 50% Mac users.
I am looking for a way to send all users for my site that type in a URL that doesn't exist to be sent to a certain page (instead of getting a 404 message), from where they can get to where they need. I searched some sites, and apparently I need to modify my .htaccess file, although I have no idea how. Could someone help me out here?
currently it looks like this:
# -FrontPage-
DirectoryIndex home.html
IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*
<Limit GET POST>
order deny,allow
deny from all
allow from all
</Limit>
<Limit PUT DELETE>
order deny,allow
deny from all
</Limit>
and the code I found was this:
RewriteEngine on
RewriteCond %{REQUEST_URI} !-U
RewriteRule ^(.+) http://jeugdraadroeselare.be/error404.html
But how do I use it?
P.S. don't visit any other page of that site, it totally srews up Google Analytics, last time I had stats with 50% Mac users.