|
|
||||||
|
||||||
| Index Link To US Private Messages Archive FAQ RSS | ||||||
| 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
|
||||
|
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
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 --------------------------------------------------------- |
|
||||
|
I use the second option regularly and its working fine.
__________________
SEO Professional India |
|
||||
|
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 |
|
|||
|
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 --------------------------------------------------------- |
|
||||
|
Quote:
__________________
"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 |
|
|||
|
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 --------------------------------------------------------- |
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|
|
WebProWorld |
Advertise |
Contact Us |
About |
Forum Rules |
MVP's |
Archive |
Newsletter Archive |
Top |
WebProNews
WebProWorld is an iEntry, Inc. ® site - © 2009 All Rights Reserved Privacy Policy and Legal iEntry, Inc. 2549 Richmond Rd. Lexington KY, 40509 |