interwebsites
Forum Replies Created
-
For me once i entered that code the links would immediately redirect as for the admin I had to create another htaccess file in the wp-admin folder to fix the errors in the admin.
Yes I used the Google Disavow tool as I had thousands of links to the site also. I just exported googles list then, ordered by date, removed the bottom lines (old legitimate back links) then submited the file.
Yes code is working and nearly all the bad links in google are gone now.
I just put the code in my htaccess file at the bottom, not enclosed in anything. I guess different hosts may require things.
Visual editor doesn’t work: Blank text area. But using the text tab on the top right lets you use HTML to add/edit posts.
I’m only planning on running this until google removes the indexed pages.
As for the admin .htaccess, that is to resolve the issues caused by the main htaccess file.
I guess this isn’t a completely ideal solution but it works enough.
This is working enough for me at the moment. Post / page visual editor doesn’t work. Perhaps someone can figure a solution.
in the root directory .htaccess I put:
RewriteEngine On RewriteBase / # Get the strings but no empty strings because of home failure RewriteCond %{QUERY_STRING} . # AND try to exclude normal searches, CSS and Javascript: RewriteCond %{QUERY_STRING} !^s=(.*)$ RewriteCond %{QUERY_STRING} !^c=(.*)$ RewriteCond %{QUERY_STRING} !^ver=(.*)$ RewriteCond %{REQUEST_URI} !^/wp-login\.php # AND try not to rewrite specific directories: RewriteCond %{REQUEST_URI} !^wp-admin/ RewriteCond %{REQUEST_URI} !^wp-content/ # Do it RewriteRule ^(.*)$ http://www.yoursite.com.au/$1? [G,NC]I created a .htaccess file in the wp-admin folder containing:
RewriteEngine On RewriteBase / RewriteCond $1 !^(edit\.php|edit-tags\.php|upload\.php|link-manager\.php|post-new\.php|post\.php|admin\.php|themes\.php|widgets\.php|theme-editor\.php|plugin-install\.php|plugin-editor\.php|profile\.php|tools\.php|customize\.php|nav-menus\.php|users\.php|options-general\.php|options-writing\.php|options-media\.php|options-reading\.php|options-discussion\.php|options-media\php|options-permalink\.php|) RewriteRule ^(.*)$ http://www.yoursite.com.au/$1? [G,NC]Not sure if this will work for everyone:
Added to htaccess in the root directory:
RewriteEngine On RewriteBase / # Get the strings but no empty strings because of home failure RewriteCond %{QUERY_STRING} . # AND try to exclude normal searches, CSS and Javascript: RewriteCond %{QUERY_STRING} !^s=(.*)$ RewriteCond %{QUERY_STRING} !^c=(.*)$ RewriteCond %{QUERY_STRING} !^ver=(.*)$ # AND try not to rewrite specific directories: RewriteCond %{REQUEST_URI} !^wp-admin/ RewriteCond %{REQUEST_URI} !^wp-content/ # Do it RewriteRule ^(.*)$ http://www.yoursite.com/$1? [G,NC]Created a new htacces file in the admin (or add to an existing one if you have one already:
#prevents urls containing ? from redirecting RewriteEngine On RewriteBase / RewriteCond $1 !^(edit\.php|edit-tags\.php|upload\.php|link-manager\.php|post-new\.php|admin\.php|themes\.php|widgets\.php|theme-editor\.php|plugin-install\.php|plugin-editor\.php|profile\.php|tools\.php|customize\.php|nav-menus\.php|users\.php|options-general\.php|options-writing\.php|options-media\.php|options-reading\.php|options-discussion\.php|options-media\php|options-permalink\.php|) RewriteRule ^(.*)$ http://www.yoursite.com/$1? [G,NC]Hopefully that keeps google happy.
Oops having a few issues with the home page, will get back to this one.
Sometimes a plug in can be a good option, they aren’t all made equal.
This is what I used to resolve the issues with googles index of dodgy links.
So far so good.
RewriteEngine On RewriteBase / # Try to exclude normal searches: RewriteCond %{QUERY_STRING} !^s=(.*)$ # AND try not to rewrite admin pages: RewriteCond %{REQUEST_URI} !^wp-admin/ # AND perhaps better not the CSS version numbers, ... RewriteCond %{QUERY_STRING} !^ver=(.*)$ # AND RewriteCond %{QUERY_STRING} !^c=(.*)$ # AND/OR protect the whole wp-content directory from rewriting RewriteCond %{REQUEST_URI} !^wp-content/ # make sure the home page doesn't redirect RewriteCond %{REQUEST_URI} !^/ # AND THEN: Try to replace all the other query strings RewriteCond %{QUERY_STRING} ^(.*)$ # tell them that this page is not existing anymore (410, gone) RewriteRule ^(.*)$ http://www.yoursite.com/$1? [G,NC]Finally found a solution.
This serves a 410 error you any links that start with a question mark.
RewriteEngine On
RewriteBase /
RewriteCond %{QUERY_STRING} .
RewriteRule ^(.*)$ http://www.yoursite.com.au/$1? [G,NC]So far the public site appears to be working fine, Although I guess search and some other features could be interfered with. I don’t use this and I figure if I run this for a week or so google should drop all those links from their index.
Only problem this removes all styling from the admin. Once I figure out the solution to that I will post it. But it has instantly reduced my traffic. I had 50 to 100 people on my site real time in GA, where previously I had 10 or so visitors a day.
Yes lot’s of spammy traffic but they just end up at my normal site. I just want to remove those URLs from google. Hopefully there is a simple soloution to redirect all those URLs to a 404 page and google should quickly remove them.
Thanks for the quick response. Damn!
Hmm that looks a little beyond my skill level, I’m hoping google will figure it out soon. Or there will be some htaccess or similar solution. All the links start with a ? and as far as I am aware I cant find any other areas of the website that use http://www.thecassettes.com.au/?other-randome-text-here
This doesn’t work 🙁 I guess the ? is a special character in URLs
RedirectMatch 301 ^/?.*$ http://www.thecassettes.com.au/Forum: Plugins
In reply to: [Membership 2] Sync roles Membership plugin and wordpress ?OOps sorry wrong plug in thread
Forum: Plugins
In reply to: [Membership 2] Sync roles Membership plugin and wordpress ?I am using you plug in to manage users. Currently new users are added when they sign up to an event in Event espresso. But it appears the sync between Ultimate members only works one way and I can t add wordpress users to Ultimate members only the other way around.
Is there a way I can have my wordpress users automatically sync to Ultimate Members?