Page is a not externally linkable
hp_solomon - 9:25 am on Nov 3, 2005 (gmt 0)
I was able to overide that redirects the subdomain to its default directory by editing the top level vhost.conf. Now i got a new problem. When I logged in to the site and go to the page using a link or typing the URL of the fake subdomain (http://bandname.domain.com), my session dissapeared. Everytime I go to the page even I am logged in, I was logged out or not totally logged out because when i go back to the page without the subdomain, i was logged in again. Seems like using the subdomain my session dissapeared but the session is there when i go back to the page without the subdomain. Is there a way to maintain a single session to multiple subdomain, or is there a solution to fix this issue. Any advice.? Here is the directory structure of the site when i access it through FTP: I think the solution to this is to point all my subdomain to the directory root of my domain name. that is on /httpdocs/ directory. I tried this script in my root vhost.conf but it doesnt work <IfModule mod_rewrite.c> The session is lost because of the mod rewrite. I guess the reason why is that the subdomain i generated through mod_rewrite still references the subdomain directory not the main domain directory where my session cookies are located. Again this is what I want to achieve. Changing [bandname.domain.com...] to access the page [domain.com...] without actually changing the URL in the address bar and loosing sessions. Please help for i've been trying to solve this for more than two weeks already. I'm loosing hope. I'm sure there is a way.
Hi,
bin
cgi-bin
conf --> root conf where vhost.conf is located
error_docs
etc
httpdocs ---> root folder of the site... and the root of phpbb
lib
pd
private
subdomains ---> empty, no folders and files - default directory of subdomains
tmp
usr
var
web_user
RewriteEngine on
RewriteMap lowercase int:tolower
ServerAlias *.domain.com
RewriteCond %{REQUEST_URI}!^/index.php
RewriteCond %{HTTP_HOST}!^www.domain.com$
RewriteCond %{HTTP_HOST}!^webmail\.domain.com$
RewriteCond %{HTTP_HOST} ^[^.]+\.domain.com$
RewriteRule ^(.+) %{HTTP_HOST}$1 [C]
RewriteRule .* [domain.com...] [P]
RewriteRule ^([^.]+).domain.com(.*) /home/httpd/vhosts/domain.com/httpdocs/$2 [L]
</IfModule>
I'm thinking if there's a way to mod_rewrite the subdomain and will point the sub directories to the root subdomain then it might work.