Forum Moderators: phranque
what i intend do is to navigate from one sub-domain folder to other sub-domain folder.
e.g. <IMG src="../images/logo.png">
instead of
<IMG src="http://mysite.com/images/logo.png">
assume all sub-domain folders and 'images' folders are in 'public_html' folder.
is this possible using some .htaccess trick?
any other way?
please help.
[edited by: jdMorgan at 3:45 pm (utc) on July 29, 2004]
[edit reason] spelling [/edit]
You see, sub_domain folders resolves as
mysubdomain.mydomain.com
We need that, it should resolve as
mydomain.com/mysubdomain/
This can be done by httpd.conf setting but I have no access to http.conf file. Any other trick? Maybe .htaccess code can't do it?
Anyone there to help me?
[edited by: jdMorgan at 3:47 pm (utc) on July 29, 2004]
[edit reason] spelling [/edit]
The dependencies are:
Jim
what information i know is that my all subdomain folders reside in 'public_html' or 'www' folder.
there is single ip for that.
i type mysubdomain.mydomain.com to get index page of that mysubdomain folder.
i type mydomain.com/articles to get index page of that articles folder.
both folders 'mysubdomian' and 'articles' are in same folder: my 'public_html' or 'www' folder.
i can't jump out of 'mysubdomain' folders using relative urls ( ../ scheme )
i don't h've rights2access httpd.conf file.
but i can create modify .htaccess files in any of my folders.
please assume missing information.
please provide a ( guesssed ) help.
great thanks.
Here is a discussion including the code for rewriting arbitrary subdomains to subdirectories using mod_rewrite in .htaccess [webmasterworld.com] -- See msg #6.
This has a negative performance impact -- it is faster to do mod_rewrite or mod_alias stuff in httpd.conf, but it will give you the control you need.
Jim