directory to subdomain

Using a single web hosting account to host multiple sites

directory to subdomain

Postby Timi » Tue Nov 07, 2006 3:04 pm

hi all,

$username = directory name for new users always change.
$default = theme name always change.

Site Address : http://www.domain.com/t1/$username/index.php

Images address : http://www.domain.com/t1/Themes/$defaul ... s/logo.gif

images dont show.

how can i y fix
Regards,


and my .htaccess file.
Code: Select all
Options +FollowSymLinks

RewriteEngine On

RewriteCond %{HTTP_HOST} !^(www\.)?domain.com$    [NC]
RewriteCond %{HTTP_HOST} ^([^\.]+)\.domain.com$ [NC]
RewriteRule !^t1(/.*)?$ /t1/%1/$1 [QSA,L]
Timi
 
Posts: 4
Joined: Tue Nov 07, 2006 2:55 pm

Postby richardk » Tue Nov 07, 2006 3:27 pm

What is the path to the image in the source of the page? (In the <img> tag.) It needs to be absolute, ie. /t1/Themes/$default/images/logo.gif and then it should work fine.
richardk
 
Posts: 8800
Joined: Wed Dec 21, 2005 7:50 am

Postby Timi » Tue Nov 07, 2006 4:04 pm

sorry i am forget

all site running under sub domain

http://$username.domain.com/

images dont show..
Timi
 
Posts: 4
Joined: Tue Nov 07, 2006 2:55 pm

Postby richardk » Wed Nov 08, 2006 5:27 am

That path (/t1/Themes/$default/images/logo.gif) should still work. Anything starting with /t1 won't be rewritten.
richardk
 
Posts: 8800
Joined: Wed Dec 21, 2005 7:50 am

Postby Timi » Thu Nov 09, 2006 1:39 am

thx for reply i fix images url.
now sometimes web pages blank or white

how can i fix.
or any user write for me new .htaccess this domain to sub domain : http://www.domain.com/t1/$username/index.php

http://$username.domain.com and
http://www.$username.domain.com

thx
Timi
 
Posts: 4
Joined: Tue Nov 07, 2006 2:55 pm

Postby richardk » Thu Nov 09, 2006 11:45 am

Did it work before you changed the image paths? Did you break something in the PHP code when you changed the image paths?
richardk
 
Posts: 8800
Joined: Wed Dec 21, 2005 7:50 am

Postby Timi » Fri Nov 10, 2006 1:02 pm

images ok now but i need fic .htaccess code
sometimes web pages blank or white i dont know
how can i fix
Timi
 
Posts: 4
Joined: Tue Nov 07, 2006 2:55 pm

Postby richardk » Fri Nov 10, 2006 2:21 pm

I don't see how the .htaccess file can be causing it. Maybe the script requires the domain name and/or request uri to be correct.
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 32 guests

cron