Switched from Wix to Wordpress dreaded hashtag URL
-
Recently took over managing a site for a non-profit which was using the dreaded Wix. Switched over to Wordpress but now Google still has the old URL's with the hashtag. Can't forward them in .htaccess and don't want to add javascript for fear of slowing down load time.
I found a solution that seems like it will take hours and hours of work. I found the solution at http://www.thedriversgarage.com/web-technology/redirecting-hashbang-urls-wix-urls/ but it seems like it would take hours with all the URL's.
I submitted an XML sitemap in Google webmaster tools.
My question is, how serious could this effect SEO for my site? Google accepted the new sitemap but still has the old URL's in SERP. How long does this generally take to remove? Will the hashtag URL's penalize the site for duplicate content? If so is there a way to tell Google the homepage without hashtags is the page with original content? Sort of like the rel=canonical tag which I know wont work as the hashtag URL's all redirect to the homepage so they will all have the tag.
Does Google ignore the hashtag? Could there even be a benefit to this, possibly the homepage getting more page authority due to the redirects? How serious is this? Thanks in advancing.
-
I'm in the same boat, and even tried the DRIVERS GARAGE solution (which is also posted on quite a few other blog sites). Unfortunately, that did not work for me. Neither did the REDIRECTION WP plugin, nor did editing my .htaccess a zillion different ways. Heck, I even tried creating directories and html files with embedded java.
Here is the only redirection that DID WORK for me (as indicated it would by Peter):
JAVASCRIPT
(1) Create a Javascript file with this code:
var hashesarr = { "#!old-news/chi3":'/new-page/',
"#!another-news/dkc8":'/another-new-page/',
"#!something-old/eckje8":'/something-new/' };
for (var hash in hashesarr) {
var patt = new RegExp(hash);
if (window.location.hash.match(patt) !== null) {
window.location.href = hashesarr[hash];
}
}(2) Save that file to your theme's child folder (so it doesn't get overwritten in the future by theme or Wordpress updates.
I saved my file here: \wp-content\themes\aweseometheme-child\(3) In your SEO Plugin, or wherever you can edit the home page's HEAD file, add this code:
(4) Test, make changes, try again and PRESTO!
As a disclaimer, I have not yet tested to see how this will affect SEO Pagerank or Google redirects. I'm guessing I will still have to implement the Sitemap with the UGLY url's per the DRIVERS GARAGE. But all my client really cared about was that the client's who bookmarked specific pages, or had links pointing to deep pages would be redirected properly.
MY AHA ANSWER WAS FOUND HERE:
http://www.simosh.com/article/cbgaifec-301-redirect-from-wix-to-wordpress.html
(Alex Nikitenko is a genious!)AND JAVASCRIPT INSTRUCTION HERE:
https://codex.wordpress.org/Using_Javascript -
Tuff situation. Why? Browser didn't sent # and everything behind it to the server.
So if you trying to get url as http://www.example.com/#!my-super-duper-url
Browser will sent to the server request for http://www.example.com/ and server will process it. But full url that browser want is also included #! fragment. This mean that you can't make .htaccess redirect, nor some server side redirects for the moment.So same hurt also all bot and crawlers (Including Moz Roger!). And there was solution:
https://developers.google.com/webmasters/ajax-crawling/docs/specification?hl=en
but later this solution was deprecated:
https://googlewebmastercentral.blogspot.bg/2015/10/deprecating-our-ajax-crawling-scheme.htmlAnd this make things complicated. For now they still support old solution so will be OK for bots. Probably for some users that comes from bookmarks, emails and/or other traffic sources can have hard times. Because will be redirected to "homepage". So maybe combination of both methods (JS redirector + your actual method) can save the day for humans and bots.
Got a burning SEO question?
Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.
Browse Questions
Explore more categories
-
Moz Tools
Chat with the community about the Moz tools.
-
SEO Tactics
Discuss the SEO process with fellow marketers
-
Community
Discuss industry events, jobs, and news!
-
Digital Marketing
Chat about tactics outside of SEO
-
Research & Trends
Dive into research and trends in the search industry.
-
Support
Connect on product support and feature requests.
Related Questions
-
Amp plugins + Wordpress = speed, rankings, results
Hello beloved, Been some time since I have been on, planning to return and help out and be bit more active. Need some latest thoughts and input, on amp plugins for Wordpress, and their results and effect on rankings? Thank you all in advance 🙂
Web Design | | vmialik0 -
Analytics year to year comparisons when Url extensions change?
We manage a website which we recently changed from Drupal to Word Press. In the change, we dropped a small part of the previous URLs - the end extension - .php For example /attractions-rates.php is now
Web Design | | Teamzig
/attractions-rates with no .php. We eliminated the .php to make the URL simpler. How is it possible (and easiest) to do a year to year comparison as Google sees the pages as different? They didn't for the first 8 days (we could see both) but now the pages with the .php extension shows zeros. The content of the page is exactly the same only the .php is different. We know we can manually go back to last year's reports and do side by side but that is time consuming. Hoping there is a filter or process we can use to gen a report? Thanks, Jim0 -
WordPress Category page title h1 or h2
Hi friends, I know this is a minor technical change, but we are in an extremely competitive market and I don't want to have any points against us. On our WordPress Category pages i.e. http://www.domain.com/category/�tegory-title%/ I looked at the code behind the the Title of the category page, which is "Browsing: %Category Title%" The code is an h2. I look at the posts in the category archive below, and those are also h2's. The theme preview is here and you can click on Entertainment - Reviews to see exactly what I'm referring to - http://themeforest.net/item/smartmag-responsive-retina-wordpress-magazine/full_screen_preview/6652608 I changed the code for the "Browsing: %Category Title%" to h1, which I believe is more consistent and standard formatting. 1. Is this a correct technical on-page optimization? 2. Would it be beneficial to remove "Browsing"?
Web Design | | JustinMurray0 -
URL & Link Hierarchy - juice flow direction from backlinks?
Our site is very regional, so we focus all of our seo efforts on each of these region landing pages. For Example: domain.com/toys/us/ca/san-francisco We added an informational page (ex. reviews) and gave it a url like this: domain.com/toys/us/ca/san-francisco/reviews Question: Will external backlinks to domain.com/toys/.../reviews provide any link juice value to it's hierarchical parent page: domain.com/toys/us/ca/san-francisco?
Web Design | | 42Floors0 -
Wordpress or Joomla member function - HELP!
Does anyone know of a plugin/theme/template that would allow me to create a site with the following features: 1 section of content that is public 1 section of content that is only for registered members and that is hidden until you log in. A registration page A sign up form
Web Design | | MassivePrime0 -
Google Analtyics Conversion Tracking for Wordpress Life Coaching Site
Hello, How do I do conversion tracking for Google Analytics for this site: debidonner(dot)com She has a 'Thank You' page after you return from Paypal Thanks!
Web Design | | BobGW0 -
Changing from Squarespace to Wordpress - Will I Lose My Rankings?
I have a friend who has a squarespace site that is giving him lots of trouble. For one, even though it is supposed to redirect to GreenSpaceConstruct.com...Bing and Yahoo don't seem to recognize this domain. Instead, they show greenlightconstruct.squarespace.com in the serp's. Oddly, Google shows the site as GreenSpaceConstruct.com. The site is ranking well for some terms. I'm afraid that converting to wordpress will hurt his rankings in the short term. If bing and yahoo are crawling this squarespace domain, and he moves it...is there a way not to just completely lose the rankings? Thanks for any thoughts. Much appreciated! Josh
Web Design | | JoshTurner0 -
Custom URL's with Bigcommerce Issue (Is it worth it?)
We're building out a store in Bigcommerce, who for all intensive purposes is perfect for SEO besides the fact that you can not change the URL's to be custom. My question is, does this kill the SEO value of bigcommerce, despite everything else being great? So for example the URL's for a category page would be something like this www.mysite.com/categories/keyword and the product URL's are pulled in by product name, so product URL's could be something like www.mysite.com/products/Product-Description-Long-223.html (notice the words will be capitalized and their is no way to remove the trailing .html) I could go with Interspire (the liscenced version of Bigcommerce) or Magento so I can custom edit this stuff. But then its a lot more work for my employee's on the buildout.
Web Design | | iAnalyst.com0