Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

.htaccess rewrite ?

Status
Not open for further replies.

waytech2003

Programmer
Jul 14, 2003
316
US
I have websites on a server that I do not have control of the Apache files. I believe this hosting is referred to as Shared Hosting. I do have the ability to edit the .htaccess file. I have 3 domain names pointing to this site. The site is maintained by Frontpage 2000, so I believe Frontpage edits something in .htaccess too.

I am restructuring the website by taking everything out of the root directory and moving into several subs. I want to somehow keep the site going if someone tries to get here using an old link.

Example: typing takes you to the page. This page will now be moved to
I need to insert /YYYY/ into any URL that does not contain it.

To make it even harder I want the other domain names go to to their own subs.
Ex: will be will be
Can this be done by .htaccess?
 
Thank you, I will look into this.

I have never worked with .htaccess before so I might be back to get more specific examples to test out.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top