Announcement

Collapse
No announcement yet.

301 Redirect Unix Server

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    301 Redirect Unix Server

    I am using the format:

    Code:
    redirect 301 /oldname.htm http://www.mysite.co.uk/newname.htm
    File is saved as ".htaccess" and loaded to the root

    Encoding is ANSI

    When uploaded, any page on the site comes up with this error:

    Internal Server Error, this is an error with your script, check your error log for more information.

    If i delete the file, all works as normal.

    Anyone shed any light on this, i'm aware that i shall be shortly kicking myself and rest assured i shall do it very hard.

    Thanks for any help

    #2
    I use the same format....the only difference being is .html at the end. No idea if it's this that's causing the problem though Maybe the redirect you are using will not work on the type of server your site's on?
    www.ecclestonanglingcentre.co.uk

    Comment


      #3
      Does redirect permanent work?

      Code:
      redirect permanent /oldname.htm http://www.mysite.co.uk/newname.htm
      Cheers

      David
      Located in Edinburgh UK

      http://twitter.com/mcfinster

      Comment


        #4
        Hi Dave

        No that doesn't work either, strange huh. Funniest thing is i swapped over to unix hosting today instead of Windows to make this easier lol.

        Classic.

        Comment


          #5
          I'm certainly no fundi with .htaccess but I use the syntax below to redirect all from .com to .co.uk if it helps:

          RewriteEngine on
          RewriteCond %{HTTP_HOST} ^(www\.)?domain\.com
          RewriteRule (.*) http://www.domain.co.uk/$1 [R=301,L]

          Presumably it's host dependant.

          Comment


            #6
            Very strange, we use redirect permanent a lot in our Unix box. Perhaps a wee phone call to your hosts is in order!
            Cheers

            David
            Located in Edinburgh UK

            http://twitter.com/mcfinster

            Comment


              #7
              Thanks for your help guys, i will give them a call tomorrow and see what they have to say for themselves. As least i confirmed i wasnt doing something stupid.

              Cheers

              Comment

              Working...
              X