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.

Unable to View templates

January 19, 2011 7:30am

Subscribe [2]
  • #1 / Jan 19, 2011 7:30am

    mailvivo

    4 posts

    Firstly I’m pretty new to EE so sorry if this is a painfully obvious query, but my searching has proved fruitless:

    I’m in the process of setting up a site using EE, I have defined my template group as ‘site’ but when I click on the View links (from the Template Manager) I get a “The requested URL /site was not found on this server.” error. Any suggestions to why this may be?

    Obviously I need to elaborate:

    When looking into this further (after trying to view the index file) I can see that the URL is “http://www.mydomain.com/site”, which looks correct to me. Same thing with the ‘About Us’ template (“http://www.mydomain.com/site/about_us”).

    Now, I have made a slight change to the General Configuration in an attempt to make the site have pretty URL’s. I amended the URL to the root directory of your site setting to be just “http://www.mydomain.com/” to remove the /site reference.

    I would also note the Name of your site’s index page setting is blank. Inserting “index” (or anything by that matter) into this simply breaks the css references (which I realise is down to my coding) but does not resolve the issue.

    Any suggestions? Thanks in advance for any help in stopping my tearing more hair out!

  • #2 / Jan 19, 2011 9:56am

    mailvivo

    4 posts

    Had the ‘well that was stupid moment’... removing the index.php reference from the Name of your site’s index page setting was the route cause for the issue.

    The secondary query I have to this now is, what is the best route for creating ‘pretty URLs’. By this I means turning the default addresses from:

    <a href="http://www.mydomain.com/index.php/about">http://www.mydomain.com/index.php/about</a>

    to

    <a href="http://www.mydomain.com/about">http://www.mydomain.com/about</a>
  • #3 / Jan 19, 2011 3:28pm

    Ingmar

    29245 posts

    Yes, you can remove index.php from the URLs using mod_rewrite, but it’s not officially supported. Let me move this to the CodeShare Corner for some community support. Thanks.

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

ExpressionEngine News!

#eecms, #events, #releases