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
-
Can the design still be considered adaptive if the URL is different?
I was under the impression our site had a mobile dedicated design, but my developers are telling me we have an adaptive design. The mobile site is set up different and has different content and the url is as follows: www.site.com/MobileView/MobileHome.aspx Can it still be considered adaptive if the URL is not the exact same? Hopefully this make sense and I appreciate anyone's input!
Web Design | | AliMac260 -
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 -
Is switching from a very old HTML table site to HTML5 going to make a big difference
Hello, My site owner has been having calls that our old HTML site needs to switch to HTML5. Is it really worth the ubgrade from an archaic HTML site? Please explain. Bob
Web Design | | BobGW0 -
2 or more wordpress installs on 1 domain
Hi ....I need to know if anyone has any concerns of running 2 or more WordPress installs on one domain and if so what would the concerns be. The situation is that we have a static html site that has a WordPress blog....and it is installed in example.com/blog/ . We will upgrade the static site to WordPress and this WordPress install will be in example.com/monkeys/ and then we will point its address to the root and make all other needed changes when ready to go live...but the install will stay in its own directory. So bottom-line is we have one domain with two WordPress installs that are each installed in their own sub directory and run from their own independent databases. There are quite a number of reasons for us to want to do this but I wont get into that......I just want to know if anyone has any concerns with this setup? The research we have done says its OK as well as our hosting provider....but before we get cracking we thought maybe one more "educated" input would make us feel more comfortable. Thanks
Web Design | | nomad-2023230 -
Managing website content/keywords for wordpress site
We are in the midst of redesigning our website and have been working with freelance blog/content writers to increase the unique content on our site. We are finding it increasingly difficult to manage the topics/keywords as we continue to expand. Googledrive and google spreadsheets have been our primary tools thus far. Can anyone recommend a good tool that would allow us to manage content and blog posts for our site?
Web Design | | Tom_Carc0 -
URL Help
Will the following urls will be considered as two different urls? 1. www.example.com/key=value1& key2=value2 2. www.example.com/key2=value2 & key=value1
Web Design | | prsntsnh0 -
Help needed on URL structures
I am busy structuring URL's for a client and an issue i have come across is as follows: i have a URL that is a long one, we cant remove words in it so the question is which one is better structurally: root/courses/businessmanagementandadministration.aspx or root/courses/business-management-and-administration.aspx please help.
Web Design | | nick_pageone0 -
How to bounce back after a new url & new site design?
About a month ago, my company changed domains (from the long-established www.imageworksstudio.com to the new www.imageworkscreative.com) and also did a complete overhaul of our site. We tried to do everything necessary to keep Google happy as we went through this change, but we've suffered a drastic loss of both rankings and traffic. I know that can happen as a result of a redesign AND as a result of a new domain, but I'm wondering how long you would expect it to take before we bounced back and also, what can we do in the meantime to improve?
Web Design | | ScottImageWorks0