OK - that’s fixes it.,
Thanks.
I thought it might also fix the rss_feed re-direct problem
So I changed that rule to:
# GETTING RSS FILE BY PAGE NUMBER
# http://villarentfethiye.simpg.net/rss_feed-5.xml
RewriteCond %{HTTP_HOST} ^(.+).simpg.net$ [NC]
RewriteCond %{HTTP_HOST} !^www.simpg.net$ [NC]
RewriteRule ^(.*?)rss_feed-([0-9]+)\\.xml$ rss_feed.php?rss=$2 [NC,QSA,L]
But when I click on my RSS image I get taken to this address:
[B]http://simpg.net/info.php?a=villarentfethiye&rss=5[/B]
I am testing it on this page: Mysite
That &rss=5 is the correct page number - so it is nearly working !!
The complete .htaccess file is this:
Options +SymLinksifOwnerMatch
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]
######################################################
Redirect old file path to new file path
To block an IP address:
RewriteCond %{REMOTE_ADDR} ^(A\.B\.C\.D)$
Re-direct for broken images
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^images/.*\.jpg$ /images/default.jpg [L]
GETTING RSS FILE BY PAGE NUMBER
RewriteCond %{HTTP_HOST} ^(.+).simpg.net$ [NC]
RewriteCond %{HTTP_HOST} !^www.simpg.net$ [NC]
RewriteRule ^(.*?)rss_feed-([0-9]+)\.xml$ rss_feed.php?rss=$2 [NC,QSA,L]
GETTING SUPPORTING PAGES BY PAGE NO
RewriteCond %{HTTP_HOST} ^(.+).simpg.net$ [NC]
RewriteCond %{HTTP_HOST} !^www.simpg.net$ [NC]
RewriteRule ^(.*?)-p([0-9]+)\.html$ info.php?p=$2 [NC,QSA,L]
GETTING MAIN PAGE BY URL NAME
RewriteCond %{HTTP_HOST} ^(.+).simpg.net$ [NC]
RewriteCond %{HTTP_HOST} !^www.simpg.net$ [NC]
RewriteRule ^.*$ http://simpg.net/info.php?a=%1 [NC,QSA,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ 404.php?url=$1 [L]
Can you see what I have done wrong ??
Thanks again.
.