OK - thanks for the advice.
I have gone away and done some stuff that should work.
My .htaccess reads:
PHP Code:
Options +FollowSymLinks
RewriteEngine On
# BELOW IS STUFF TO BLOCK SPAMMING ATTACKS
######################################################
# Block out any script trying to set a mosConfig value through the URL
RewriteCond %{QUERY_STRING} mosConfig_[a-zA-Z_]{1,21}(=|%3D) [OR]
# Block out any script trying to base64_encode crap to send via URL
RewriteCond %{QUERY_STRING} base64_encode.*(.*) [OR]
# Block out any script that includes a <script> tag in URL
RewriteCond %{QUERY_STRING} (<|%3C).*script.*(>|%3E) [NC,OR]
# Block out any script trying to set a PHP GLOBALS variable via URL
RewriteCond %{QUERY_STRING} GLOBALS(=|[|%[0-9A-Z]{0,2}) [OR]
# Block out any script trying to modify a _REQUEST variable via URL
RewriteCond %{QUERY_STRING} _REQUEST(=|[|%[0-9A-Z]{0,2})
# Send all blocked request to homepage with 403 Forbidden error!
RewriteRule ^(.*)$ index.php [NC,L]
#
######################################################
RewriteCond %{HTTP_HOST} ^([^.]+).my-gigs.net [NC]
RewriteCond %{HTTP_HOST} !^www.my-gigs.net [NC]
RewriteRule ^.*$ /index.php?cdz=%1 [QSA,L]
Then on my "index.php" page :
PHP Code:
if(isset($_GET["cdz"])){
$the_key = $_GET["cdz"];
$the_key=$the_key."php";
header("Location: /$the_key");
exit();
} // end if
I also added a "A" Record to my DNS records:
* A - IPv4 Address 65.xx.xxx.xxx
BUT, when I enter :
mobilewebsite.my-gigs.net
into my browser I get this:
The browser goes to this:
reviewsworthreading.com/wp-signup.php?new=mobilewebsite.my-gigs.net
Now reviewsworthreading.com is a multiuser network worpdpress site which also has in its domain a wildcard A Record.
Both domains are on the same sever and on the same IP address.
I suppose it not surprising that things are getting a bit muddled ?
But is there a solution ?
I could ask my server supplier for a new IP address.
Any thoughts ?
.
__________________
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.