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.

Help....Sub directories in controller

March 04, 2009 8:04am

Subscribe [2]
  • #1 / Mar 04, 2009 8:04am

    rammukmel

    1 posts

    Hi,

    I am new to codeigniter, i need urgent help with using sub directories.

    I am not using htaccess and my links look like: http://www.mydomain.com/index.php?c=controller
    I want to put my admin in a folder so it would look like :
    http://www.myadmin.com/admin/index.php?c=login

    Any ideas?

    Thanks.

  • #2 / Mar 04, 2009 3:35pm

    pistolPete

    1071 posts

    Do you have to use query strings?

    http://www.myadmin.com/admin/index.php?c=login

    You can probably achieve this using .htacess and mod_rewrite.

  • #3 / Mar 04, 2009 5:19pm

    Tom Schlick

    386 posts

    <a href="http://www.myadmin.com/index.php?d=admin&c=login">http://www.myadmin.com/index.php?d=admin&c=login</a>

    if i remember from the config right you can do this but ive never tested it. why use query strings when you can use prettier, more seo friendly urls?

    <a href="http://www.myadmin.com/admin/login">http://www.myadmin.com/admin/login</a>

    ^^so much better 😊

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

ExpressionEngine News!

#eecms, #events, #releases