|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
Htaccess Redirection Problem
If I try using the bottom part of this script to redirect index.htm to the www domain it doesn't work. But it works if I'm trying to redirect index.html. But if I change the html to htm like I have done below it doesn't work. Is there any way to make minor alterations to make it work?
Options +FollowSymLinks RewriteEngine on RewriteCond %{HTTP_HOST} ^(domainwithoutwww) RewriteRule (.*) (domainwithwww)/$1 [R=301,L] RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.htm\ HTTP/ RewriteRule ^index\.htm$ (domainwithwww/) [R=301,L] Please help. Also I can't put the full domain in because the forum won't allow it. Try to make some sense of it. |
|
#2
|
||||
|
||||
|
Put this in your htaccess
Quote:
...and let us know if it works for you.
__________________
SEO FAQs - You might find your answer here. SEOchat Forum Rules - Read Before You Post **Do what you feel in your heart to be right- for you'll be criticized anyway. You'll be damned if you do, and damned if you don't.** |
|
#3
|
||||
|
||||
|
Spot on..Thanks..
|
|
#4
|
||||
|
||||
|
I really appreciate that. Is there any good places I can learn about htaccess?
|
|
#5
|
||||
|
||||
|
Quote:
__________________
ClickyB "The quality of the visitor is more important than the volume".. Egol 22nd Feb 2008
New to SEO? Start Here: SEO FAQForum Rules & Posting Guidelines |
![]() |
| Viewing: SEO Chat Forums > Other > SEO Scripts > Htaccess Redirection Problem |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|