Results 1 to 9 of 9

Thread: migrate to new hosting and domain

  1. #1
    New user
    Join Date
    05-22-14.
    Posts
    6

    Default migrate to new hosting and domain

    HI everybody,

    I'm totally new using this CMS, my friend is asking me basicaly to duplicate his website done via TYPOlight, to a new domain and hosting, ( He just keep the same design, changing just the content).

    I'm use to do this with wordpress, but not with TYPOlight, is there anybody to help me in that step ? I can not find the path / process to do . ..

    Thank you so much for your help

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

    Default

    Hi,

    what exactly is the problem? Have you already read the section "Moving an installation" from the Contao manual?
    Contao Community Moderator
    → Support options

  3. #3
    New user
    Join Date
    05-22-14.
    Posts
    6

    Default

    Hi,

    The website has been done by TYPOlight webCMS, the old version of Contao apparently . . . I follow the step from your link, it does kidn of works, but only the homepage . . . if i try to go to another page, it says it can not find index.php . . .

    thank you for your help

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

    Default

    Seems like you need to activate the server configuration file by renaming the ".htaccess.default" (or "._htaccess") to ".htaccess" in the Contao main directory.

    Depending on your vhost configuration you might also need to check whether the RewriteBase is set correctly:
    Code:
      ##
      # Change the RewriteBase if your Contao installation is in a subdirectoy and
      # the rewrite rules are not working properly. Usage examples:
      #
      #   RewriteBase /contao-3.0.0
      #   RewriteBase /path/to/contao
      #
      # Depending on your server, you might have to remove the line entirely.
      ##
      RewriteBase /
    Contao Community Moderator
    → Support options

  5. #5
    New user
    Join Date
    05-22-14.
    Posts
    6

    Default

    Hi,

    Thank you for those informations,

    should i put the rewritebase on the htacess ?

    my htacess is like this:

    Code:
    #Fix Rewrite
    Options -Multiviews
    
    
    <Files ~ "^.(htaccess|htpasswd)$">
    deny from all
    </Files>
    Options +FollowSymLinks
    RewriteEngine On
    RewriteBase /
    RewriteRule ^admin/.*$ - [PT]
    RewriteRule ^css/.*$ - [PT]
    RewriteRule ^js/.*$ - [PT]
    RewriteRule ^files/.*$ - [PT]
    Options -Indexes
    <FilesMatch ".(gif|jpg|jpeg|png|ico)$">
    Header set Cache-Control "max-age=3600"
    </FilesMatch>
    
    
    RewriteRule ^(\w+)/rss?$ rss.php?lang=$1
    
    
    RewriteRule ^(\w+)/product/(\w+)/(\w+)/(\w+)?$ index.php?type=product&category=$2&subcategory=$3&product=$4&lang=$1
    RewriteRule ^(\w+)/product/(\w+)/(\w+)?$ index.php?type=product&category=$2&subcategory=$3&lang=$1
    RewriteRule ^(\w+)/product/(\w+)?$ index.php?type=product&category=$2&lang=$1
    RewriteRule ^(\w+)/project/(\w+)/(\w+)?$ index.php?toptype=project&type=$2&lang=$1&ext=$3
    RewriteRule ^(\w+)/project/(\w+)?$ index.php?toptype=project&type=$2&lang=$1
    RewriteRule ^(\w+)/(\w+)/page-(\w+)?$ index.php?type=$2&page=$3&lang=$1
    RewriteRule ^(\w+)/(\w+)/(\w+)?$ index.php?toptype=$2&type=$3&lang=$1
    RewriteRule ^(\w+)/(\w+)?$ index.php?type=$2&lang=$1
    
    
    #ErrorDocument 400 ./error/400.html
    #ErrorDocument 404 ./error/404.html
    DirectoryIndex index.html index.php      
    order deny,allow
    I'm not really in back-end, I really appreciate your help,

    thank you

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

    Default

    Your RewriteBase is set to "RewriteBase /" which is just fine as long as you map your domain directly to the Contao root directory.

    However, you'd also have to add the following rewrite URL so that the Apache web server rewrites all requests with an ".html" URL suffix to the "index.php" script:
    Code:
      RewriteCond %{REQUEST_FILENAME} !-f
      RewriteRule .*\.html$ index.php [L]
    BTW: Do you have an entry
    PHP Code:
    $GLOBALS['TL_CONFIG']['rewriteURL'] = true
    in your local configuration file "system/config/localconfig.php". If this is set to true, Contao will rewrite the front end URLs and omit the "index.php" URL fragment.
    Contao Community Moderator
    → Support options

  7. #7
    New user
    Join Date
    05-22-14.
    Posts
    6

    Default

    Hi,

    It's just super weird, It seems they did 2 different backoffice, I can not understand why and how to deal with that,

    IN the other installation, the ht.acess is:

    Code:
    # Enable mod_rewrite
    RewriteEngine On
    RewriteBase /
    
    # Block any URI protocol in the query string
    RewriteCond %{QUERY_STRING} (ftp|https?):|/etc/ [NC]
    RewriteRule .* - [F,L]
    
    # Block any URI protocol in the request
    RewriteCond %{REQUEST_URI} (ftp|https?):|/etc/ [NC]
    RewriteRule .* - [F,L]
    
    # Rewrite TYPOlight URLs
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule .*\.html$ index.php [L]
    I try to add

    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule .*\.html$ index.php [L]

    and

    RewriteBase /subfolderinstallation
    # RewriteBase /mymainfolder/subfolerinstall/

    and doesnt fi anything . . .

    Is there a way to have a chat for your hand please ??

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

    Default

    I can take a look at it if you want. Contact me via PM.
    Contao Community Moderator
    → Support options

  9. #9
    New user
    Join Date
    05-22-14.
    Posts
    6

    Default

    thank you I've send you a pm

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
  •