Links redirecting to spam sites
-
I’m not sure if this is related to the ‘slider fix’ you helped me with a few days ago, but since then I’m getting the occasional post link on my site redirecting to spammers sites. This one most frequently :
http://ch.saxobank.com/trading-platforms/download-demo?reflink=ON_PPC_010110_J_PROS_GADCON_EN_EN
If it’s just coincidence I’ll keep digging, but if you do know anything I would be grateful.
Grab your .htaccess file from your root directory, and paste it here for us to see.
Remember to enclose the entire code with backticks (the little key at the top-left of most keyboards, it also has the ~ symbol on it.
Go to WP-Admin –> Settings –> Permalinks and save your permalinks once again. it will overwrite the existing .htaccess.
Admin
@prasanna, doing that will not overwrite the .htaccess file per se, but just the portion in that file added by WordPress. All other codes outside the
# BEGIN WordPressand# END WordPresstags will remain intact.Ah! Yes! I forgot this. Probably deleting the existing .htaccess file and then reset the permaklinks settings will solve the problem..
Thanks guys. Sorry I’ve been a bit slow in responding. Here’s the htaccess file from my root directory.
## EXPIRES CACHING ##
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType image/jpg "access 1 year"
ExpiresByType image/jpeg "access 1 year"
ExpiresByType image/gif "access 1 year"
ExpiresByType image/png "access 1 year"
ExpiresByType text/css "access 1 month"
ExpiresByType application/pdf "access 1 month"
ExpiresByType text/x-javascript "access 1 month"
ExpiresByType application/x-shockwave-flash "access 1 month"
ExpiresByType image/x-icon "access 1 year"
ExpiresDefault "access 2 days"
</IfModule>
## EXPIRES CACHING ##
################################## Errors ######################################
#ErrorDocument 301 /error/301-moved_permanently.html
#ErrorDocument 302 /error/302-moved_temporarily.html
#ErrorDocument 303 /error/303-see_other.html
#ErrorDocument 400 /error/400-bad_request.html
ErrorDocument 401 /error/401-authorization_required.html
#ErrorDocument 402 /error/402-payment_required.html
ErrorDocument 403 /error/403-forbidden.html
ErrorDocument 404 /error/404-not_found.html
#ErrorDocument 405 /error/405-method_not_allowed.html
#ErrorDocument 406 /error/406-not_acceptable.html
#ErrorDocument 407 /error/407-proxy_authentication_required.html
ErrorDocument 408 /error/408-request_timed_out.html
#ErrorDocument 409 /error/409-conflicting_request.html
#ErrorDocument 410 /error/410-gone.html
#ErrorDocument 411 /error/411-content_length_required.html
#ErrorDocument 412 /error/412-precondition_failed.html
#ErrorDocument 413 /error/413-request_entity_too_long.html
#ErrorDocument 414 /error/414-request_uri_too_long.html
#ErrorDocument 415 /error/415-unsupported_media_type.html
ErrorDocument 500 /error/500-internal_server_error.html
#ErrorDocument 501 /error/501-not_implemented.html
#ErrorDocument 502 /error/502-bad_gateway.html
ErrorDocument 503 /error/503-service_unavailable.html
#ErrorDocument 504 /error/504-gateway_timeout.html
#ErrorDocument 505 /error/505-http_version_not_supported.html
################################################################################
######################### Howto map /~user to /user ############################
RewriteEngine On
RewriteCond %{REQUEST_URI} ^/([^/]+)$
RewriteCond %{DOCUMENT_ROOT}/%1 !-d
RewriteCond /home/sites/%{SERVER_NAME}/users/%1 -d
RewriteRule ^([^/]+)$ http://%{HTTP_HOST}/$1/ [R,L]
RewriteCond %{REQUEST_URI} ^/([^/]+)/
RewriteCond %{DOCUMENT_ROOT}/%1 !-d
RewriteCond /home/sites/%{SERVER_NAME}/users/%1 -d
RewriteRule ^([^/]+)(.+)$ /~$1/$2
################################################################################
###################### Howto map /users/user to /users/user ####################
RewriteEngine On
RewriteCond %{REQUEST_URI} ^/users/([^/]+)$
RewriteCond %{DOCUMENT_ROOT}/%1 !-d
RewriteCond /home/sites/%{SERVER_NAME}/users/%1 -d
RewriteRule ^users/([^/]+)$ http://%{HTTP_HOST}/users/$1/ [R,L]
RewriteCond %{REQUEST_URI} ^/users/([^/]+)/
RewriteCond %{DOCUMENT_ROOT}/%1 !-d
RewriteCond /home/sites/%{SERVER_NAME}/users/%1 -d
RewriteRule ^users/([^/]+)(.+)$ /~$1/$2
################################################################################
# Pour JavaScript
#AddOutputFilterByType IDEFLATE application/x-javascript
# Pour HTML
#AddOutputFilterByType DEFLATE text/html
# Pour XML
#AddOutputFilterByType DEFLATE text/xml
# Pour TEXT
#AddOutputFilterByType DEFLATE text/plain
# ...
#
# -ou-
#
# Pour JavaScript
#AddOutputFilter DEFLATE js
# Pour HTML
#AddOutputFilter DEFLATE html
# Pour XML
#AddOutputFilter DEFLATE xml
# Pour TEXT
#AddOutputFilter DEFLATE txt
# ...
RewriteEngine on
RewriteCond %{HTTP_HOST} !derekhaines.ch
RewriteRule (.*) http://www.derekhaines.ch/$1 [R=301]
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /whizbuzz/
RewriteRule ^index.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /whizbuzz/index.php [L]
</IfModule>That all looks normal.
Do you allow multiple users to post on your blog?
There is another htaccess file within my blog’s directory. Could the problem be there?
Yeah, probably..
What do you mean within your blogs directory? Which folder, specifically?
Go ahead and paste it here also (if it’s not huge).
Viewing 10 posts - 1 through 10 (of 13 total)
- 1
- 2
- You must be logged in to reply to this topic.
