Mobile app version of vmapp.org
Login or Join
Gonzalez347

: Getting 500 intenal error when setting 301 redirect using .htaccess I am trying to use a 301 redirect to direct users and bots to my new site but when I put the .htaccess live i keep getting

@Gonzalez347

Posted in: #301Redirect #Apache #Htaccess #HttpCode500 #ModRewrite

I am trying to use a 301 redirect to direct users and bots to my new site but when I put the .htaccess live i keep getting a 500 internal error shown.

The site is actually a subdomain which i want to redirect to another subdomain on another site. I'm not sure if that's relevant but I thought I should include this information.

The web server I'm using is Apache and this is the htaccess code I'm using:

Options +FollowSymLinks
RewriteEngine on
RewriteRule (.*) www.blog.mysite.co.uk/ [R=301,L]


Any idea what might be wrong with this?

10.02% popularity Vote Up Vote Down


Login to follow query

More posts by @Gonzalez347

2 Comments

Sorted by latest first Latest Oldest Best

 

@Shelley277

not sure why it wasnt working but got in contact with the host and this is the solution they provided.. put it in the httpdocs folder, works fine

Redirect 301 / blog.example.co.uk

10% popularity Vote Up Vote Down


 

@Cody1181609

Not guaranteed this is it, but try removing a line at a time until the error stops. That'll help you see which particular bit is causing the problem.
Getting a 500 from htaccess is sometimes a sign you're trying to do something you're not allowed to. Is mod_rewrite actually enabled, for example? The same for the Options line; If the server isn't configured with AllowOverride Options then it might be the FollowSymLinks line.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme