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

Recommended Answers

All 2 Replies

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

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

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.