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.

removing index.php after moving ee not working anymore

April 09, 2008 4:57pm

Subscribe [2]
  • #1 / Apr 09, 2008 4:57pm

    klick

    49 posts

    Hi,

    as the title says i moved my ee installation from a subfolder called »cms« to the root directory.

    now removing the index.php via

    RewriteCond $1 ^(site|about|contact|imprint|jobs|services|site|press|clients|P[0-9]{2,8}) [NC] 
    RewriteRule ^(.*)$ /index.php/$1 [L]

    within .htaccess is not working anymore. it still generates the »index.php«.
    Before moving ee it worked well with

    RewriteRule ^(.*)$ /cms/index.php/$1 [L]

    any suggestions to get this to work?
    i apparently need to be pointed to the right direction.

    oh. and it keeps working if i remove the index.php from the url by hand.

    thanks in advance!

    klick

  • #2 / Apr 09, 2008 5:05pm

    Ingmar

    29245 posts

    You did move the .htaccess file as well, of course? By the way, .htaccess will not prevent index.php from “being generated”, it will only allow acess to it even if it’s not in the URL.

  • #3 / Apr 09, 2008 5:09pm

    klick

    49 posts

    nope. didn’t move htaccess.
    it was and is still located in the root directory.

    that’s what is a bit strange about this.

    thanks for your help.

  • #4 / Apr 09, 2008 5:19pm

    Lisa Wess

    20502 posts

    What do you have in Admin -> System Preferences -> General Config for the index file?

  • #5 / Apr 09, 2008 5:22pm

    klick

    49 posts

    Name of your site’s index page: index.php
    should i remove this (empty that field)?

  • #6 / Apr 09, 2008 5:25pm

    Ingmar

    29245 posts

    Yes. It’s been that way before, has it not?

  • #7 / Apr 09, 2008 5:25pm

    Lisa Wess

    20502 posts

    Yes, make that empty so that EE doesn’t generate that in your path statements. =)

  • #8 / Apr 09, 2008 5:28pm

    klick

    49 posts

    ok. i noticed that it works without but it »felt wrong«.

    igmar: not to my knowledge. i never removed that field.

    thank you lisa.

  • #9 / Apr 09, 2008 5:40pm

    Lisa Wess

    20502 posts

    Glad you got it working!

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

ExpressionEngine News!

#eecms, #events, #releases