View Single Post
Old 2010-02-23, 10:37 AM   #1
Dr Bizzaro
I'm not interested in the facts, I'm interested in my opinion.
 
Dr Bizzaro's Avatar
 
Join Date: Apr 2003
Location: Chicago
Posts: 1,620
Send a message via ICQ to Dr Bizzaro
.htaccess problem

I just bought a site and I was looking through the stats and see that a lot of traffic is being sent to:

http://www.domain.com/index.php/feed/

My normal htaccess file does not work because it's going to index.php/feed/ and not just /feed/

Not sure what I can add to my htaccess to get that to redirect back to the main page.


Here is what I currently have:

Quote:
AddHandler server-parsed .html
AddType text/html html


RewriteEngine on
RewriteOptions inherit
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://www.domainname.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://domainname.com*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://domainname.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.domainname.com*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://domainname.com:80/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.domainname.com:80/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://domainname.com:80.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.domainname.com:80.*$ [NC]

RewriteRule (gif|jpg|png|swf|mpg|avi|GIF|JPG|PNG|SWF|MPG|AVI)$ http://www.domainname.com [R,L]

ErrorDocument 400 http://www.domainname.com
ErrorDocument 403 http://www.domainname.com
ErrorDocument 404 http://www.domainname.com
ErrorDocument 501 http://www.domainname.com
ErrorDocument 502 http://www.domainname.com
ErrorDocument 503 http://www.domainname.com
Dr Bizzaro is offline   Reply With Quote