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.

Renamed index.php, but path variables don't work

July 16, 2008 5:17pm

Subscribe [2]
  • #1 / Jul 16, 2008 5:17pm

    randykarels

    8 posts

    I’m launching a site from my local development server to my host. I’ve renamed the root index.php file as per the support docs, but there is a problem. The home page renders correctly, but everywhere I’ve used the path=“group/template” function the URLs appear as

    <a href="http://domain.com/myhome?/group/template">http://domain.com/myhome?/group/template</a>

    instead of

    <a href="http://domain.com/myhome/group/template">http://domain.com/myhome/group/template</a>

    My .htaccess file is currently:

    DirectoryIndex myhome index.php index.shtml index.html index.htm
    <Files myhome>
    ForceType application/x-httpd-php
    </Files>

    And the control panel field for the nenamed index.php file is “myhome”

    I’ve emailed my host to make sure the .htaccess is correct, but posted here for other suggestions.

    Thanks!
    -r

  • #2 / Jul 16, 2008 5:25pm

    Ingmar

    29245 posts

    The question mark is probably inserted automatically because you have turned on “force query strings”.

  • #3 / Jul 16, 2008 5:28pm

    randykarels

    8 posts

    Bingo!

    Thanks… fixed now.

    -r

  • #4 / Jul 16, 2008 5:54pm

    Ingmar

    29245 posts

    Very glad to hear it, and closing this thread.

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

ExpressionEngine News!

#eecms, #events, #releases