ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Having a subdomain without EE? Cause and Affect?

February 22, 2012 11:04am

Subscribe [3]
  • #1 / Feb 22, 2012 11:04am

    McCoy IT

    41 posts

    Just a question to make sure I won’t cause an issue with my current install of EE.
    I want to create a subdomain without having EE installed on it. Will this affect my EE install by having a subdomain with my own PHP/HTML pages? Do I have to take into consideration anything about the htaccess file on my main level domain? I am just creating a mini site to promote an new product.

    Any reassurance would be greatly appreciated.

    Thank you.

  • #2 / Feb 22, 2012 11:58am

    zizther

    228 posts

    It shouldn’t affect anything as it is separate. Your .htaccess file may affect your subdomain as it may call the index.php instead of index.html if your using it. But that can be sorted if you face that issue.

  • #3 / Feb 22, 2012 12:05pm

    McCoy IT

    41 posts

    To clarify. Having an index.php or index.html in the subdomain folder may cause an issue. My current .htaccess file is as follows:

    <IfModule mod_headers.c>
    Header unset ETag
    </IfModule>
    FileETag none

    <IfModule mod_rewrite.c>
    Options +FollowSymlinks
    RewriteEngine on
    RewriteCond $1 !.(gif|jpe?g|png)$ [NC]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ /index.php/$1 [L]
    </IfModule>

    Options -MultiViews
    Options -Indexes

    Would this cause as issue with the subdomain default files? (index.php/.html)

  • #4 / Feb 22, 2012 12:38pm

    zizther

    228 posts

    Try uploading the index.html into the directory and go to the subdomain without entering the index.html at the end and see if the .html file loads.

    It has only been an issue for me once where an the htaccess file in the root directory was telling my subdomain to look for an index.php, whereas it only had an index.html in it.

    Have a go and see if the htaccess affects your .html, if it does then we can use another htaccess in the subdomain directory to call the .html instead.

  • #5 / Feb 23, 2012 1:09pm

    Shane Eckert

    7174 posts

    Hello McCoy IT,

    I do not see this causing a problem. If you are concerned, Zizther’s suggestion is a good test.

    Is there anything else I can help you with?

    Cheers,

  • #6 / Mar 05, 2012 1:14pm

    McCoy IT

    41 posts

    Just created the subdomain with the same directory path as my EE install. Everything is working still. No complications with the htaccess.

  • #7 / Mar 07, 2012 2:15pm

    Shane Eckert

    7174 posts

    Hello McCoy IT,

    I am glad to hear it!

    Let me know if you run into any issues in the future.

    Cheers,

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases