cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
New

couple of months and still don't know solution. htaccess

 Admittedly I am not too sure what I am doing, but over months I have tried (and gave up) over and over to figure out why this simple .htaccess is not working.  With it, my entire site errors out.  Can anybody look at this file to tell me what I am doing wrong?  I went through many sites to get the right code, and I simply don't see the problem. 

Contacted GD while back, but they don't offer support for this.  I never had an issue with the redirect, only last couple of months. 

 

Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^mysite.com[nc]
RewriteRule ^(.*)$ http://www.mysite.com/$1 [r=301,nc]

Redirect 301 /oldpage.php /newpage.php

3 REPLIES 3
Helper VI Helper VI
Helper VI

Re: couple of months and still don't know solution. htaccess

Last line(Redirect 301)

Add your complete domain name
eg:

Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^mysite.com[nc]
RewriteRule ^(.*)$ http://www.mysite.com/$1 [r=301,nc]
Redirect 301 /oldpage.php http://www.test.com/newpage.php
~Jan Mykhail Hasselbring Web Administrator @ fullstackwebsolution.com
New

Re: couple of months and still don't know solution. htaccess

Thank you for the suggestion, but it does not work.  I tried several options including this one.  As soon as I upload it on the server, I get this error across the entire site

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator and inform them of the time the error occurred, and the actions you performed just before this error.

More information about this error may be available in the server error log.

Helper VI Helper VI
Helper VI

Re: couple of months and still don't know solution. htaccess

Odd, what did the error log say?
~Jan Mykhail Hasselbring Web Administrator @ fullstackwebsolution.com