subdomain

Using a single web hosting account to host multiple sites

subdomain

Postby Eunix » Mon Nov 15, 2004 11:03 pm

I make:
Code: Select all
RewriteEngine on
RewriteCond   %{HTTP_HOST}                 ^my\.yarafisha\.ru$
RewriteRule   ^(.+)                        %{HTTP_HOST}$1          [C]
RewriteRule   ^my\.yarafisha\.ru(.*) /pub/home/afisha43/projects/my/$1 [L]

but there is a error:
Code: Select all
You don't have permission to access /pub/home/afisha43/projects/my/pub/home/afisha43/projects/my/pub/home/<..> on this server.

Why?
Eunix
 

Postby Caterham » Fri Dec 10, 2004 4:09 pm

Code: Select all
RewriteEngine on
RewriteRule ^pub - [L]
RewriteCond   %{HTTP_HOST}  ^my\.yarafisha\.ru$
RewriteRule   ^(.+)  %{HTTP_HOST}$1  [C]
RewriteRule   ^my\.yarafisha\.ru(.*) /pub/home/afisha43/projects/my/$1 [L]
there is a loop - exclude the dir 'pub'
Caterham
 
Posts: 690
Joined: Fri Dec 10, 2004 1:30 pm


Return to Domain Handling

Who is online

Users browsing this forum: No registered users and 96 guests

cron