htaccess Elite

.htaccess tutorial


All times are UTC [ DST ]





Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: put request_uri in error 404 page
PostPosted: 11 Oct 2008 10:47 
Offline

Joined: 07 Oct 2008 02:54
Posts: 1
Visitors of my website are getting a lot of error 404 my log tells me.

They are probably just bots but I'm still curious what url's they are trying to find.

So I want htaccess to send these visitors to an error 404 page like this one:

mydomain.com/error404.php?requesturi=heregoestherequesturi

It is probably simple but I'm not an htaccess expert.

I've tried:

RewriteCond %{REQUEST_URI}
ErrorDocument 404 RewriteRule http://www.mydomain.com/error404.php?%1

but that is probably laughable wrong.

Who helps me out?


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 13 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Powered by phpBB