Results 1 to 3 of 3

Thread: 2.11 .htaccess problem

  1. #1
    User
    Join Date
    07-08-10.
    Location
    Madrid, Spain
    Posts
    145

    Default 2.11 .htaccess problem

    Hello

    I would like to do a redirection in the htaccess to redirect an old page (without the language in the url) to the new one
    The following line doesn't work (or I don't place it at the right level)
    Code:
    Redirect permanent /myfile.html http://www.mysite.com/en/myfile.html
    Also I tried to redirect 404 error pages but I don't find the correct syntax

    Can you help me ?

    Thanks
    Eric
    Contao 2.8 -> 3.0
    Evizer Web Agency

  2. #2
    User
    Join Date
    04-10-11.
    Posts
    162

    Default Re: 2.11 .htaccess problem

    I think you're after a 301 redirect. This is the HTTP code for 'Permanently moved'. You use it as follows:

    Code:
    Redirect 301 /myfile.html http://www.mysite.com/en/myfile.html

  3. #3
    Community-Moderator xchs's Avatar
    Join Date
    06-19-09.
    Posts
    1,287

    Default Re: 2.11 .htaccess problem

    "Redirect permanent" and "Redirect 301" do both the same.
    Contao Community Moderator
    → Support options

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •