Will removing #! from the url affect SEO?

I have a website that uses Ajax to change between pages. The current url format is mysite.com/#!about/cts1 for example (I was using WIX). I now have rewrote the entire website, and moved it to Wordpress. The url now looks like mysite.com/about

How will this affect my SEO?

1 Like

There is no reason why any part of the URL from the # or ? onward should have any impact on SEO as none of that has anything whatever to do with what the page is about.

I don’t know the answer, but it might be worth checking the Ajax-generated URLs that the search engines have indexed (if any) and see if they redirect to the new URLs. If not, you might need to set up redirects to avoid a search engine hit.

2 Likes

Hi,
No it is not going to affect your seo as long as it was not added in your url from first day. While create url of your web pages if you have added and mentioned it in your url and it was caching your url with # then yes it will hurt but if it was not mentioned earlier and not caching with # then you have no need to worry about it.

If I remember correctly #! was introduced to avoid using ? back in the dark ages when ? affected SEO and # didn’t

Thanks guys. Yes google has index pages including #!. I’m presuming I now need to create a 301 redirect in my .htaccess for every individual page? Would this solve any problems and can I redirect a url that includes the #!? My redirect would look something like this - Redirect 301 /#!about/cts1 /about

Thanks again.

Including #! in a 301 redirect does not work! Google has indexed my pages which including the #! but I have no idea how to tell Google that my page location has changed. My website has good pagerank, and I do not want to lose that.

If anyone has any suggestions please do let me know.

Why do you say the redirect does not work?
Is it because if you put the URL with #! in your browser, it does not go the the page without it?
If that is the case, then no, it does not work.
Or are you saying it does not work because Google still has the old URLs indexed?
Google will not drop the old URLs after just a few days, they can hang around for ages. That does not mean the redirect does not work.

The 301 should do that, but Google does not change it’s indexes instantly. You could also submit a sitemap with the new URLs or submit individual pages via “Fetch as Google” to get them indexed. Just don’t expect the old URLs to disappear from the index any time soon.

1 Like

Yes, it does not redirect in the browser when I visit the page.

But how do I do a 301, Redirect 301 /#!about/cts1 /about does not work in the htaccess?

Can I do a 301 redirect in sitemap?

Perhaps you should start a new topic for that question, over in the Server Config section. You’d be more likely to find somebody there who can advise you how to do it.

2 Likes

You may need to escape the # with a backslash (\) because # creates a comment in htaccess.

1 Like

Thank you, I will try that.

Good suggestion, but unfortunately didn’t work.

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.