Reply to suggestion needed

Your name:

Reply:


Posted by Kentor on 05/09/07 01:30

Hello,

Is there a way to have a rewrite done for two files for the same path?
like this:

RewriteRule ^area/(.*) indexMap1.php?area=$1 [L,QSA]
RewriteRule ^area/(.*) indexMapContents1.php?area=$1 [L,QSA]

Your probably thinking "why would you wanna do that?"

The reason why I want to do this is because indexMap1.php is accessed
with a subdomain as following: http://something.mywebsite.com ....
something goes into some var already before these 2 rewrite rules this
way:

RewriteCond %{HTTP_HOST} ^(www\.)?([^.]+)\.mywebsite\.com
RewriteCond %{HTTP_HOST} !^www\.mywebsite\.com
RewriteRule ^$ indexMap1.php?location=%2 [L,QSA]

now, inside my indexMap1.php file I'm using indexMapContents1.php as a
javascript like this:

echo "<script type=\"text/javascript\" src=\"/indexMapContents1.php
\"></script>";

and then inside that file I tell it that its actually a JS file and
not a php...

so I need the rewrite to catch http://something.mywebsite.com/area/"this_part_here"
from the indexMapContents1.php file but I also need that same part
used in the indexMap1.php file...

Any suggestions on how I could do this would really help. I've already
spent so much time on this and the only alternative I found was to
create a cookie in indexMap1.php and get it back in
indexMapContents1.php

Thanks

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация