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.

Access old html pages on root with Expression engine site

April 02, 2012 11:39am

Subscribe [2]
  • #1 / Apr 02, 2012 11:39am

    Hi,

    EE version2.4.0

    We have New EE site on windows IIS server and index.php is removed from url with ini file.

    One requirement we have is to also access old html pages on root and no redirecting. So if url given http://www.example.com/test.html goes to Home page which is default 404 setup.
    How to access test.html on root?

    Thanks.

  • #2 / Apr 03, 2012 12:19pm

    Shane Eckert

    7174 posts

    Hello fatrabbit,

    Thank you for posting your question here on the ExpressionEngine forums.

    Have you tested this? I am able to view test.html on my server even with index.php removal and error page enabled.

    Another idea is to make test.html a template with an index to the old files.

    I hope this helps!

    Cheers,

  • #3 / Apr 04, 2012 10:31am

    Hi Shane,

    Is anything to add/update in ini file. As we have to have those pages as html on root.
    Here is the folder structure on root
    /system
    /themes
    /images
    /style
    index.php
    file.ini
    test.html

    and in .ini file

    #Rules for folders to accept without rewriting:
    RewriteRule ^/images/(.*)$ /images/$1 [I,L]
    RewriteRule ^/style/(.*)$ /style/$1 [I,L]
    
    #This removes index.php? from the urls
    RewriteRule ^/(.*)$ /index.php?/$1 [I,L]

    Thanks.

  • #4 / Apr 05, 2012 4:32pm

    Shane Eckert

    7174 posts

    Hey fatrabbit,

    I am not sure if the settings in php.ini are messing with things to be honest.

    Can you remove them to see?

    Are you also using .htaccess?

    Are you using strict urls?

    Please let me know.

    Cheers,

  • #5 / Apr 10, 2012 1:00pm

    Hi Shane,
    Our site is on Windows IIS 6 server. EE 2.4.0
    No .htaccess
    ISAPI Rewrite tool, Refrence taken form this thread to write .ini file
    No strict URL.
    If we remove ini file we can access html file on root.
    We need solution for these by keeping ini file to remove index.php from url and also able to access old HTML file on root.
    Let me know if you need more information.

    Thanks.

  • #6 / Apr 11, 2012 10:52am

    Shane Eckert

    7174 posts

    Hello fatrabbit,

    Unfortunately finding a solution that includes a custom php.ini file is a bit outside of support.

    Because moving that file aside resolves the issue and allows ExpressionEngine to work as expected, that is where you will want to focus your efforts. Is there a reason you are using the php.ini file instead of .htaccess? I am not at all familiar with IIS.

    Is there anything else I can help you with?

    Cheers,

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

ExpressionEngine News!

#eecms, #events, #releases