Connecting Tech Pros Worldwide Help | Site Map
Reply
 
LinkBack Thread Tools Search this Thread
  #1  
Old April 1st, 2008, 04:07 AM
Needs Regular Fix
 
Join Date: Feb 2008
Location: Australia
Age: 22
Posts: 465
Default 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.com/myfile.php

But if I do this new system I will have:
www.mydomain.com/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.com/main/ to just www.mydomain.com/

Is that right? If so, what is the htaccess line?
Reply
  #2  
Old April 1st, 2008, 04:21 AM
ak1dnar's Avatar
Moderator
 
Join Date: Jan 2007
Location: Colombo, LK
Posts: 1,410
Default

Moving from Php Forum to Apache Forum.

Please Read URL rewriting here
http://httpd.apache.org/docs/2.0/misc/rewriteguide.html
Reply
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 204,687 network members.
Post your question now . . .
It's fast and it's free

Popular Articles