var sidebar_align = 'right';
var content_container_margin = parseInt('350px');
var sidebar_width = parseInt('330px');
modrewrite without explicit redirecting
Hi, I have this as my .htaccess
RewriteRule !(index.php) http://domain.com/index.php?languageIndicator=lang_ar [L]
It works in every way as desired.
Any url, http://domain.com/whatever will show up http://domain.com/index.php
From index.php then I can create php generated websites that take pics, whatever from database.
However, I got an idea. What about if several domain names use the same index.php and the same database. So, it's like mirrors.
If I put the same .htaccess in other domain name, I got something unexpected though.
The url location actually change to http://domain.com/index.php?languageIndicator=lang_ar
Also the content of
also change to domain.com, and /index.php?languageIndicator=lang_ar
echo 'Server:' . $_SERVER['SERVER_NAME'] . "\n";
echo 'Host:' . $_SERVER['HTTP_HOST'] . "\n";
echo 'Request:' . $_SERVER['REQUEST_URI'];
I want an implicit redirect. Not an explicit redirect. To the outside world, people must think that they're indeed accessing http://otherdomainame.com/somepages and has no way to know that the page they're looking is http://domain.com/index.php?languageIndicator=lang_ar
How can I do that?
Of course, I can always copy index.php to all my domain names. But that's slow.
Rather than redirecting to a URL, you can also redirect to a local file on the server. This will allow redirection without using a specific domain.
RewriteRule !(index.php) /var/www/path/to/domain.com/index.php
Caro.net :: Engineered Hosting
Engineered Hosting solutions including Cloud, Dedicated, Colocation, and Managed Services.