httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sean Brown <seanmichaelbr...@gmail.com>
Subject Re: [users@httpd] mod_rewrite on subdomains
Date Fri, 04 Nov 2005 14:45:25 GMT
I think this is impossible to answer without knowing what the
DocumentRoot of each of the two vhosts is.  Please provide what your
file structure looks like,


On 11/4/05, Cristian Bichis <cristian.bichis@gmx.net> wrote:
> Hello!
>
> I have one problem who gives me headache.
>
>
> I have one website, let say:    site.com
>
> I have one subdomain:  subdomain.site.com
>
> I will do into browser two types of requests:
>
> 1. http://subdomain.site.com        the url should stay as is it (no
> redirection) but the internal processing should load file index.php from
> site root (URL:  www.site.com/index.php); so in file paths terms should
> load index.php from the parent of subdomain folder
>
> 2. http://subdomain.site.com/parameter         the url should stay as is
> it (no redirection) but the internal processing should load file
> index.php?p=parameter from site root (URL:  www.site.com/index.php); so
> in file paths terms should load index.php from the parent of subdomain
> folder
>
>
> How it should look main .htaccess then ? I mean RewriteRule, RewriteCond
> aso...
>
> Best regards,
> Cristian Bichis
>
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message