As a bit of background, we have two domains:
- mydomain.com
- mydomain.cz
mydomain.cz points to mydomain.com's server and uses the same directory. We have a RewriteRule in .htaccess (which both domains share) as follows:
RewriteRule ^([0-9]+)/?$ project.php?id=$1 [NC,L] # Handle project requests
RewriteRule ^([0-9]+)/?$ project_cz.php?id=$1 [NC,L] # Handle project requests
This RewriteRule shows mydomain.com/1 while using content from mydomain.com/project.php?id=1 (for example) and mydomain.cz/1 also pulls mydomain.com/project.php?id=1 for content. However, I would like any mydomain.cz/(insert id here)'s to pull content from project_cz.php?id=(insert id here) rather than displaying the server's domain, mydomain.com - any ideas?
For example: mydomain.cz/1 would use mydomain.com/project_cz.php?id=1 and mydomain.com/1 would use mydomain.com/project.php?id=1
Many thanks.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…