Hi,
Not sure if this is a PHP problem.
I have set up a site which produces a webpage.
eg villarentfethiye.simpg.net
So an example page is:
Villa Rental
The page is converted to :
http://simpg.net/info.php?a=villarentfethiye
by the .htaccess file.
This is the code:
Code:
RewriteCond %{HTTP_HOST} ^(.+).simpg.net [NC]
RewriteCond %{HTTP_HOST} !=www.simpg.net [NC]
RewriteRule ^.*$ http://simpg.net/info.php?a=%1 [NC,QSA,L]
The problem is that some browsers apparently add a
"www" to the front of the url automatically.
So when they put "villarentfethiye.simpg.net" into the browser bar
it tries to find "www.villarentfethiye.simpg.net"
and then the system produces an error
saying it can not find the page because it is tryying to
locate:
http://simpg.net/info.php?a=www.villarentfethiye
which does not exist
I am not sure of the best way to deal with this.
Some thoughts ... ?
Thanks.
.
__________________
If you want to attract and keep more clients, then offer great
customer support.
Support-Focus.com. automates the process and gives you a
trust seal to place on your website.
I recommend that you at least take
the 30 day free trial.