954,355 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

custom .htaccess file 301 Redirect to non www form Prolems

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

proctk
Newbie Poster
2 posts since Jun 2006
Reputation Points: 10
Solved Threads: 0
 

Your host may not allow you to use .htaccess or mod_rewrite.

stymiee
He's No Good To Me Dead
Moderator
3,360 posts since May 2006
Reputation Points: 161
Solved Threads: 38
 

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

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

jmcgrew
Newbie Poster
1 post since Sep 2006
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You