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
|