Forum Moderators: phranque

Message Too Old, No Replies

/index.htm or /index.html to just ./

         

jim_knopf

7:13 pm on Nov 28, 2009 (gmt 0)

10+ Year Member



Hi all,

.htaccess i ruther ask before trying and make mistakes

I'm changing a website to a Wordpress which has below .htaccess file (generated by Wordpress when use pretty links feature)

Now there are other websites that link to me with http://www.example.com/index.htm and them people get a not found. What would I ad to me .htaccess to just send them to the home page as http://www.example.com/ ?

Thanks for any advise.

<IfModule mod_rewrite.c>
Options +FollowSymlinks
RewriteEngine On
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !http://www.blablabla.com
RewriteRule (wp-content/postpics.*\.(gif¦jpg¦jpeg¦png)$)

[blablabla.com...] [L]
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

<Limit GET HEAD POST>
order allow,deny
##--> Bye bye Limelight Networks. You are not welcome here.
deny from 208.111.128.0/18
allow from all
</LIMIT>

g1smd

9:47 pm on Nov 28, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



The code for that is posted every few days in this forum as it is one of the most requested.

A forum search for "RewriteRule" and "index" should find a lot of examples which we can discuss and tweak.