iEntry 10th Anniversary Forum Rules Search
WebProWorld
Register FAQ Calendar 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.

Share Thread: & Tags

Share Thread:

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-11-2007, 11:29 AM
WebProWorld Member
 
Join Date: Jan 2004
Location: Canada
Posts: 46
newconceptdesign RepRank 1
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-12-2007, 12:46 AM
amar's Avatar
WebProWorld Pro
 
Join Date: Aug 2005
Location: India
Posts: 295
amar RepRank 0
Default

I use the second option regularly and its working fine.
__________________
SEO Professional India
Reply With Quote
  #3 (permalink)  
Old 02-12-2007, 12:58 AM
Webnauts's Avatar
WebProWorld 1,000+ Club
WebProWorld MVP
 
Join Date: Aug 2003
Location: Worldwide
Posts: 8,164
Webnauts RepRank 9Webnauts RepRank 9Webnauts RepRank 9Webnauts RepRank 9Webnauts RepRank 9Webnauts RepRank 9Webnauts RepRank 9Webnauts RepRank 9Webnauts RepRank 9Webnauts RepRank 9
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]
__________________
"Being an expert isn't telling other people what you know. It's understanding what questions to ask, and flexibly applying your knowledge to the specific situation at hand. Being an expert means providing sensible, highly contextual direction." Jeff Atwood
SEO Workers - Search Engine Optimization Consulting Company | SEO Analysis Tool | Webnauts Net SEO
Reply With Quote
  #4 (permalink)  
Old 02-12-2007, 10:29 AM
WebProWorld Member
 
Join Date: Jan 2004
Location: Canada
Posts: 46
newconceptdesign RepRank 1
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, 07:26 PM
Webnauts's Avatar
WebProWorld 1,000+ Club
WebProWorld MVP
 
Join Date: Aug 2003
Location: Worldwide
Posts: 8,164
Webnauts RepRank 9Webnauts RepRank 9Webnauts RepRank 9Webnauts RepRank 9Webnauts RepRank 9Webnauts RepRank 9Webnauts RepRank 9Webnauts RepRank 9Webnauts RepRank 9Webnauts RepRank 9
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.
__________________
"Being an expert isn't telling other people what you know. It's understanding what questions to ask, and flexibly applying your knowledge to the specific situation at hand. Being an expert means providing sensible, highly contextual direction." Jeff Atwood
SEO Workers - Search Engine Optimization Consulting Company | SEO Analysis Tool | Webnauts Net SEO
Reply With Quote
  #6 (permalink)  
Old 02-14-2007, 07:39 PM
WebProWorld Member
 
Join Date: Jan 2004
Location: Canada
Posts: 46
newconceptdesign RepRank 1
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

Thread Tools
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

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



All times are GMT -4. The time now is 02:49 AM.



Search Engine Optimization by vBSEO 3.3.0