Re: [users@httpd] mod_rewrite on subdomains

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




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
    

RewriteRule (.*) index.php?p=$1

I don't really see what is complicated here.
  
With this rule you are loading index.php from  http://subdomain.site.com   not from http://www.site.com.

I need to load index.php from root not from subdomani folder.

Cristian

[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux