custom .htaccess file 301 Redirect to non www form Prolems

Please support our Search Engine Optimization advertiser: Get a Free SEO Analysis!
Reply

Join Date: Jun 2006
Posts: 2
Reputation: proctk is an unknown quantity at this point 
Solved Threads: 0
proctk proctk is offline Offline
Newbie Poster

custom .htaccess file 301 Redirect to non www form Prolems

 
0
  #1
Jun 14th, 2006
Hi

I was searching your form and came a cross a post that showed this code to set up 301 Redirect

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

Note I changed the web site to mine.

The problem I'm having is I'm getting a 500 error and it kills my web site when I load my .htaccess file

any ideas why
Reply With Quote Quick reply to this message  
Join Date: May 2006
Posts: 1,422
Reputation: stymiee is on a distinguished road 
Solved Threads: 35
Moderator
stymiee's Avatar
stymiee stymiee is offline Offline
He's No Good To Me Dead

Re: custom .htaccess file 301 Redirect to non www form Prolems

 
0
  #2
Jul 10th, 2006
Your host may not allow you to use .htaccess or mod_rewrite.
John Conde
Brainyminds | Merchant Account Services | I Love Code
IT'S HERE: Merchant Accounts 101 Everything you need to know about merchant accounts!
Reply With Quote Quick reply to this message  
Join Date: Sep 2006
Posts: 1
Reputation: jmcgrew is an unknown quantity at this point 
Solved Threads: 0
jmcgrew jmcgrew is offline Offline
Newbie Poster

Re: custom .htaccess file 301 Redirect to non www form Prolems

 
0
  #3
Sep 11th, 2006
proc

Try removing this line...
Options +FollowSymLinks

Our Linux server has mod-rewrite turned on but it hates that line. Works great without it.

Julie

Originally Posted by proctk View Post
Hi

I was searching your form and came a cross a post that showed this code to set up 301 Redirect

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

Note I changed the web site to mine.

The problem I'm having is I'm getting a 500 error and it kills my web site when I load my .htaccess file

any ideas why
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Search Engine Optimization Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC