Resolving an Address

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • TheServant
    Recognized Expert Top Contributor
    • Feb 2008
    • 1168

    Resolving an Address

    Hey Guys,
    If you knew me, you would have expected this, but I am wanting to organise my files into a more efficient system. I want to have my root directory to just contain my index file (which will redirect) and all the folders that my other files are in. So I will have a main folder, and then I will have a members folder.

    Right now everything is in the root, so I have:
    www.mydomain.co m/myfile.php

    But if I do this new system I will have:
    www.mydomain.co m/main/myfile.php

    I seem to recall there being a way to resolve addresses using the htaccess file, where you can change the display from www.mydomain.co m/main/ to just www.mydomain.co m/

    Is that right? If so, what is the htaccess line?
  • ak1dnar
    Recognized Expert Top Contributor
    • Jan 2007
    • 1584

    #2
    Moving from Php Forum to Apache Forum.

    Please Read URL rewriting here

    Comment

    Working...