Forum Moderators: phranque

Message Too Old, No Replies

301 Redirect for WIX Ajax URLs

         

tdgjames

2:46 pm on Mar 26, 2015 (gmt 0)

10+ Year Member



The problem I had was described in [webmasterworld.com...]

I have a site that has been cached in Google. The site originally was a WIX site, so all of the URLs were preceded with a hash and exclamation point (#!) and were cached by Google.

Now I have migrated the site to a wordpress installation on another server. Normally I use .htaccess to rewrite with 301 status for the redirection, however this method does not work for the WIX Ajax cached results.

e.g.

www.example.com/page1
www.example.com/#!ajaxpage1

....blah blah

Please help us do a 301 redirect correctly for the the WIX Ajax pages that are cached by Google.


The issue remained unresolved (as far as my searching here and on the Internet showed) and I needed a solution. I couldn't post on the original post as it's too old.

I thought I'd post up here my solution the benefit of others.

I took a step back from the low level details and looked at what I was trying to do. The solution I came up with was:

1) Create a list of all the source URLs you have, and all the destination URLs you want
2) Create all the destination URL pages
3) Work out what the Ugly versions of all hashbang (pretty) URLs should be and record them (ref: [developers.google.com...]
4) Implement 301 Redirects for the Ugly URLs
5) Deploy a Sitemap with Pretty URLs
6) Submit Your Sitemap to Google Webmaster Tools
7) Wait for Google to re-index all your pages
8) Check that the new URL(s) show up in Google search results too
9) Clean up – Remove the pretty URLs from the sitemap
Job done!

I created a detailed page on this with examples on my blog at [URL snipped]

I hope this helps someone else out.

Cheers.

[edited by: phranque at 5:28 pm (utc) on Mar 26, 2015]
[edit reason] link to personal blog [/edit]

phranque

6:59 pm on Mar 26, 2015 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



welcome to WebmasterWorld, tdgjames!

while the description your process is informative, the most interesting aspect in the context of the apache forum is the technical details of item #4.