WebProWorld Part of WebProNews.com
Page One Link To Us Edit Profile Private Messages Archives FAQ RSS Feeds  
 

Go Back   WebProWorld > Search Engines > Search Engine Optimization Forum
Subscribe to the Newsletter FREE!


Register FAQ Members List Calendar Arcade Chatbox Mark Forums Read

Search Engine Optimization Forum SEO is much easier with help from peers and experts! The WebProWorld SEO forum is for the discussion and exploration of various search engine optimization topics. Any non (engine) specific SEO or SEM topics should go here.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-11-2007, 10:29 AM
WebProWorld Member
 

Join Date: Jan 2004
Location: Canada
Posts: 43
newconceptdesign RepRank 0
Default htaccess + redirect

I am working on htaccess redirect and have two options to go, but I don't understand the difference between them, mainly issue related to symbolic link and the line "AllowOverride FileInfo". Anyone to help me with that? Which one to use, and what is the difference between them?

1st option:

Options +FollowSymLinks
AllowOverride FileInfo
RewriteEngine on
RewriteCond %{HTTP_HOST} ^example\.com
RewriteRule (.*) http://www.example.com/$1 [R=301,L]

2nd option:

Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^example.com [NC]
RewriteRule ^(.*)$ http://www.example.com/$1 [R=301,L]

Thanks
Andrew
__________________
---------------------------------------------------------
Andrew Wilczynski
New Concept Design - Web Development Studio
www.newconceptdesign.com
design@newconceptdesign.com
---------------------------------------------------------
Reply With Quote
  #2 (permalink)  
Old 02-11-2007, 11:46 PM
amar's Avatar
WebProWorld Pro
 

Join Date: Aug 2005
Location: india
Posts: 286
amar RepRank 0
Default

I use the second option regularly and its working fine.
__________________
SEO Professional India
Reply With Quote
  #3 (permalink)  
Old 02-11-2007, 11:58 PM
Webnauts's Avatar
WebProWorld 1,000+ Club
 

Join Date: Aug 2003
Location: Worldwide
Posts: 7,399
Webnauts RepRank 3Webnauts RepRank 3
Default

RewriteEngine On

RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /([^/]*/)*index\.html? [NC]
RewriteRule ^(([^/]*/)*)index\.html?$ http://www.example.com/$1 [R=301,L]

RewriteCond %{HTTP_HOST} ^example\.com [NC]
RewriteRule ^(.*)$ http://www.example.com/$1 [R=301,L]
Reply With Quote
  #4 (permalink)  
Old 02-12-2007, 09:29 AM
WebProWorld Member
 

Join Date: Jan 2004
Location: Canada
Posts: 43
newconceptdesign RepRank 0
Default question to Webnauts

Thanks.

As to your example, Webnauts. Do I have to use Rewrite Cond and Rule twice? What are these first two lines doing. I am not quite sure? Does it have anything to do with default home page file?

Andrew
__________________
---------------------------------------------------------
Andrew Wilczynski
New Concept Design - Web Development Studio
www.newconceptdesign.com
design@newconceptdesign.com
---------------------------------------------------------
Reply With Quote
  #5 (permalink)  
Old 02-14-2007, 06:26 PM
Webnauts's Avatar
WebProWorld 1,000+ Club
 

Join Date: Aug 2003
Location: Worldwide
Posts: 7,399
Webnauts RepRank 3Webnauts RepRank 3
Default Re: question to Webnauts

Quote:
Originally Posted by newconceptdesign
Thanks.

As to your example, Webnauts. Do I have to use Rewrite Cond and Rule twice? What are these first two lines doing. I am not quite sure? Does it have anything to do with default home page file?

Andrew
You can be sure that it is correct.
Reply With Quote
  #6 (permalink)  
Old 02-14-2007, 06:39 PM
WebProWorld Member
 

Join Date: Jan 2004
Location: Canada
Posts: 43
newconceptdesign RepRank 0
Default Thanks Again - Webnauts

I am sure :-)

Just hoped to understand it better, this is quite new to me. Anyway thanks for your time.

Andrew
__________________
---------------------------------------------------------
Andrew Wilczynski
New Concept Design - Web Development Studio
www.newconceptdesign.com
design@newconceptdesign.com
---------------------------------------------------------
Reply With Quote
Reply

  WebProWorld > Search Engines > Search Engine Optimization Forum
Tags: ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Search Engine Optimization by vBSEO 3.2.0