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.

index.php - causing issues on subdomains

June 26, 2010 9:13am

Subscribe [4]
  • #1 / Jun 26, 2010 9:13am

    Tom83

    12 posts

    hi. Firstly, I hope this is in the right place. Please move it if necessary.

    I have a EE (v.1.6.6), which I’ve hardly touched for months. I set it u a year ago and it all works fine.

    I cant remember how I got it to remove the index.php from the URL, I have a feeling it was a plugin by Leevi. Anyway, it works fine and in my htaccess, I have this bit of code

    # Remove index.php
    # Uses the "include method"
    # <a href="http://expressionengine.com/wiki/Remove_index.php_From_URLs/#Include_List_Method">http://expressionengine.com/wiki/Remove_index.php_From_URLs/#Include_List_Method</a>
    RewriteCond %{REQUEST_URI} !(\.[a-zA-Z0-9]{1,5})$
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_URI} ^/(site|search|temp|blog|export|includes|feeds|about|contact|twittertest|portfolio|game||members|P[0-9]{2,8}) [NC]
    RewriteRule ^(.*)$ /index.php?/$1 [L]

    My issue is that I setup a subdomain - test.whatever.com, and the urls don’t work because, by the looks of things, this htaccess is breaking it.

    How can I get around this? Can I change the htaccess file here? Or do I need a seperate htaccess on the subdomain?

    Thanks

    Tom

  • #2 / Jun 26, 2010 4:40pm

    Greg Salt

    3988 posts

    Hi Tom,

    It probably depends on how subdomains are managed in your hosting environment. Please contact your hosting support and ask them whether subdomains would be affected by .htaccess files in your webroot. Is your subdomain also an EE site that is being run from the main system directory?

    Cheers

    Greg

  • #3 / Jun 27, 2010 10:17am

    Tom83

    12 posts

    Hi thanks for that.

    the subdomain is actually a wordpress site. I’ll get in touch with the hosting support.

    If I get a working response, I’ll post back.

    Tom

  • #4 / Jun 28, 2010 2:18am

    John Henry Donovan

    12339 posts

    Great. Let us know how you get on.

  • #5 / Jul 01, 2010 9:27am

    Tom83

    12 posts

    Cool. My hosts flicked some switches and all I had to do was put a blank .htaccess file on my subdomain.

    Initially I had to directly go sub.mydomain.com/wp-admin/index.php - but once I was in there, I updated the permalink settings and it works a treat.

  • #6 / Jul 01, 2010 9:42am

    Sue Crocker

    26054 posts

    Glad things are working again. Don’t hesitate to post again as needed.

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

ExpressionEngine News!

#eecms, #events, #releases