Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Macnoviz

macrumors 65816
Original poster
Jan 10, 2006
1,059
0
Roeselare, Belgium
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:
# -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.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.