use .htaccess to create an alias?

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
intellivision
Forum Commoner
Posts: 83
Joined: Mon Aug 22, 2005 1:25 am
Location: Orbit

use .htaccess to create an alias?

Post by intellivision »

I have shell access to my shared server space.

domain.com/stuff/ <-- real, actual directory
domain.com/documents/ <-- what I need to create as an alias

How can I get the URL domain.com/documents/ go to domain.com/stuff/ ?
User avatar
JAM
DevNet Resident
Posts: 2101
Joined: Fri Aug 08, 2003 6:53 pm
Location: Sweden
Contact:

Re: use .htaccess to create an alias?

Post by JAM »

intellivision wrote:I have shell access to my shared server space.

domain.com/stuff/ <-- real, actual directory
domain.com/documents/ <-- what I need to create as an alias

How can I get the URL domain.com/documents/ go to domain.com/stuff/ ?
Try;

Code: Select all

Redirect /documents/index.php http://domain.com/stuff/index.php
Post Reply