Results 1 to 10 of 10
Like Tree1Likes
  • 1 Post By

Thread: How do third level domains work?

  1. #1
    Guest

    Question How do third level domains work?

    I want to do this but it keeps saying invalid even though the folder exists along with the files.


    /index.html is an invalid destination
    laravista likes this.

  2. #2
    alemoppo is offline AlterVista Staff
    Join Date
    Feb 2010
    Location
    IT
    Posts
    734

    Default

    Did you try to set as target your folder?

    Bye!

  3. #3
    Guest

    Default

    yes but says this
    A index.php external file is already present, cannot go on, if you rename or remove it, check than scripts are still active

  4. #4
    alemoppo is offline AlterVista Staff
    Join Date
    Feb 2010
    Location
    IT
    Posts
    734

    Default

    The AlterVista toolo manages subdomains through index.php.

    If this file already exists, there will be that message you indicated: to use the AlterVista tool there must be no index file in the root.

    If you still want to use subdomains having a homepage (index) in the main root, you have to act "manually" by setting the .htaccess appropriately.

    For example, you can use this .htaccess:

    Code:
    RewriteEngine On
    RewriteBase /
    RewriteCond %{HTTP_HOST} =subdomain.hewan.altervista.org
    RewriteCond %{REQUEST_URI} !subdomain_folder/
    RewriteRule (.*) /subdomain/$1 [L]
    Bye!

  5. #5
    Guest

    Default

    Quote Originally Posted by alemoppo View Post
    The AlterVista toolo manages subdomains through index.php.

    If this file already exists, there will be that message you indicated: to use the AlterVista tool there must be no index file in the root.

    If you still want to use subdomains having a homepage (index) in the main root, you have to act "manually" by setting the .htaccess appropriately.

    For example, you can use this .htaccess:

    Code:
    RewriteEngine On
    RewriteBase /
    RewriteCond %{HTTP_HOST} =subdomain.hewan.altervista.org
    RewriteCond %{REQUEST_URI} !subdomain_folder/
    RewriteRule (.*) /subdomain/$1 [L]
    Bye!
    Doesnt work ;-;

  6. #6
    alemoppo is offline AlterVista Staff
    Join Date
    Feb 2010
    Location
    IT
    Posts
    734

    Default

    Is there anything else in the .htaccess file? Did you replace all data correctly? Does the "/ subdomain /" folder exist?

    Bye!

  7. #7
    Guest

    Default

    Quote Originally Posted by alemoppo View Post
    Is there anything else in the .htaccess file? Did you replace all data correctly? Does the "/ subdomain /" folder exist?

    Bye!
    Still says its an invalid file









    .htaccess code
    HTML Code:
    RewriteEngine On
    RewriteBase /
    RewriteCond %{HTTP_HOST} =archives.hewan.altervista.org
    RewriteCond %{REQUEST_URI} !/archives
    RewriteRule (.*) /archives$1 [L]

  8. #8
    alemoppo is offline AlterVista Staff
    Join Date
    Feb 2010
    Location
    IT
    Posts
    734

    Default

    Quote Originally Posted by hewan View Post
    Still says its an invalid file
    As mentioned before, you can't use the altervista panel because you have already an index.php file in root.

    Code:
    RewriteBase /
    RewriteCond %{HTTP_HOST} =archives.hewan.altervista.org
    RewriteCond %{REQUEST_URI} !/archives
    RewriteRule (.*) /archives$1 [L]
    Ok, but you have to put this code in the main .htaccess file (not in /archives/.htaccess, but in /.htaccess).

    Bye!

  9. #9
    Guest

    Default

    Quote Originally Posted by alemoppo View Post
    As mentioned before, you can't use the altervista panel because you have already an index.php file in root.

    Code:
    RewriteBase /
    RewriteCond %{HTTP_HOST} =archives.hewan.altervista.org
    RewriteCond %{REQUEST_URI} !/archives
    RewriteRule (.*) /archives$1 [L]
    Ok, but you have to put this code in the main .htaccess file (not in /archives/.htaccess, but in /.htaccess).

    Bye!
    Now it says: /index.php is an invalid destination

  10. #10
    alemoppo is offline AlterVista Staff
    Join Date
    Feb 2010
    Location
    IT
    Posts
    734

    Default

    Quote Originally Posted by hewan View Post
    Now it says: /index.php is an invalid destination
    You don't have to use the altervista "manager your domains" because you have an index in the root.

    Now i see a redirect from http://archives.hewan.altervista.org/ to http://archives.hewan.altervista.org/archives/
    What code you used?

    Bye!

Posting Permissions

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

SEO by vBSEO