domain to folder

Using a single web hosting account to host multiple sites

domain to folder

Postby adriansi7 » Fri Nov 03, 2006 7:53 pm

hy , i have a domain : www.domain.ro , and i want the root directory to be in subfolder /pictures/ , how can i rewrite it? example: www.domain.ro = www.domain.ro/pictures/ but i don`t want /pictures/ to appear in address 10x
adriansi7
 
Posts: 5
Joined: Sun Sep 24, 2006 11:36 am

Postby richardk » Sun Nov 05, 2006 7:58 am

Try this in a .htaccess file in your document root:
Code: Select all
Options +FollowSymLinks

RewriteEngine On

RewriteRule !^pictures(/.*)?$ /pictures%{REQUEST_URI} [QSA,L]
richardk
 
Posts: 8800
Joined: Wed Dec 21, 2005 7:50 am


Return to Domain Handling

Who is online

Users browsing this forum: No registered users and 19 guests

cron