301 Redirect Issue for URL with # and !
-
Hi All,
We had a WIX website and now moved to Wordpress. I m having issue while doing redirecting from old URL to new URL.
Example:
Old Url: http://www.firsttraffic.com.au/#!traffic-management/ccfn
New Url: http://www.firsttraffic.com.au/our-services/traffic-management/
I tried different wordpress plugin but nothing works. I m thinking its due to the # . But How can I to redirection for URL like this .
Thanks
-
Wix is no fun
you can try this
If you want google to use it
Options +FollowSymlinks
RewriteEngine on
rewriterule ^#!traffic-management/ccfn(.*)$ http://www.firsttraffic.com.au/traffic-management/ccfn$1 [r=301,nc]https://support.google.com/webmasters/answer/174992?hl=en
http://www.firsttraffic.com.au/?_escaped_fragment_traffic-management/ccfn
http://www.firsttraffic.com.au/#!traffic-management/ccfn
RewriteEngine On
RewriteRule ^traffic-management/ccfn$ /#!traffic-management/ccfn [L]RewriteEngine On
RewriteRule ^([^-]*)$ /?escaped_fragment=$1 [L]
-
Thomas is correct. You cannot redirect from an URL with a hashtag in it (although it is possible to redirect to an URL with a hastag using escape fragments). Unfortunately, in your case it is the former, and therefore not possible.
-
Yes you are correct it is due to the #. Google does not index anything after the #so if you redirect to itfrom their perspective you might as well be doing nothing. The canonical tag could help. But more importantly why would you want to redirect to a URL with a #in it?
Google only sees this URL as
http://www.firsttraffic.com.au/
NOT http://www.firsttraffic.com.au/#!traffic-management/ccfn
http://www.firsttraffic.com.au/our-services/traffic-management/
you could redirect a new URL or create a substitute URL but if your redirecting is even successfully with a # in you're URL
Makes no sense what I would do is re-created or simply find a different URL to redirect offer to feel BU the homepage is the correct URL Yoast Wordpress SEO premium might be
Able to do it I know that you can do it server-side however tell me what stack you're running and I will send you the instructions on how to redirect. But know this your redirect you know if the homepage Google looks at it that way
all the best, Thomas
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
-
Could a redirecting a homepage mess with seo? if so is there any documentation you could point me too? Thanks!
I have a global page for our site but the global site has the exact same content as the main navigation personal page. If I redirect /index to /personal how much seo damage are we doing?
Web Design | | Miguelquirarte0 -
Help with error: Not Found The requested URL /java/backlinker.php was not found on this server.
Hi all, We got this error for almost a month now. Until now we were outsourcing the webdesign and optimization, and now we are doing it in house, and the previous company did not gave us all the information we should know. And we've been trying to find this error and fix it with no result. Have you encounter this issue before? Did anyone found or knows a solution? Also would this affect our website in terms of SEO and in general. Would be very grateful to hear from you. Many thanks. Here is what appears on the bottom of the site( www.manvanlondon.co.uk) Not Found The requested URL /java/backlinker.php was not found on this server. <address>Apache/2.4.7 (Ubuntu) Server at 01adserver.com Port 80</address> <address> </address> <address> </address>
Web Design | | monicapopa0 -
Wordpress - redirecting tags
I just ran a webmaster tool from Yoast SEO premium and notice I have a lot of problems with tags (restricted-robots-txt) For example : http://www.soobumimphotography.com/tag/wedding-group-photo/ Do I have to redirect to http://www.soobumimphotography.com/wedding-group-photo/ Should I do this to each and every posts Thank you
Web Design | | soobumim0 -
HTTPS redirecting to subdomain; do I need to 301 to HTTP first?
Hello there, quick question on HTTPS downgrade to HTTP. Originally, full site was HTTPS. Redesign eliminated need for secure layer. Site currently has https 301'd to sub.domain.com. Ideally, site would live at domain.com, but with the old site having been indexed https, the security warning triggers when you visit, hence the 301 to a subdomain. Thinking possible solutions here are to a) add back in secure layer or b) 301 all old https pages to new http pages. Have I overlooked something? With (a), I will see no SEO impact, correct? With (b), can I expect impact similar to a relaunch? Have seen a lot of chatter that there is some impact in switching http to https, but not much the other way. Any help much appreciated!
Web Design | | alimo0 -
URLs appear in Google Webmaster Tools that I can't find on my own site?!?
Hi, I have a Magento e-commerce site (clothing) and when I had a look through some of the sections in Google Webmaster Tools I found URLs that I can't find on my site. For example, a product url maybe http://www.example.co.uk/product-url/ which is fine. In that product there maybe three sizes of the product (Small, Medium, Large) and for some reason Googlebot is sometimes finding a url like: http://www.example.co.uk/product-url/1202/ has been found and when clicked on is a live url (Status code: 200) with is one of the sizes (medium). However I have ran a site crawl in Screaming Frog and other crawl tests and can't seem to find where Googlebot is finding these URLs. I think I need to: 1. Find how Googlebot is finding these urls? 2. Find out how to keep out of index (e.g. robots.txt, canonical etc.... Any help would be much appreciated and I'm happy to share the URL with members if they think they can have a look and help with this problem. I can share specific URLs which might make the issue seem clearer, let me know? Thanks, Darrell
Web Design | | clickyleap0 -
Is it better to redirect a url or set up a landing page for a new site?
Hi, One of our clients has got a new website but is still getting quite a lot of traffic to her old site which has a page authority of 30 on the home page and has about 20 external backlinks. It's on a different hosting package so a different C block but I was wondering if anyone could advise if it would be better to simply redirect this page to the new site or set up a landing page on this domain simply saying "Site has moved, you can now find us here..." sort of idea. Any advice would be much appreciated Thanks
Web Design | | Will_Craig0 -
How to count my urls?
hi, i am about to reknew my sub with a sitemap host. they offer prices based on how many urls you have. does anyone know where i can count how many my site has and it be accurate? thanks
Web Design | | YNWA0 -
Parked Domain or Redirect
Should I park a domain or Redirect? And what is the best way? I need to switch our domain name. I currently have all of our domains redirecting to our main website. I have set up there own hosting in our cpanel account so I could redirect them to our main domain. Was this too many steps? I tried putting all of our domains in our main domains, .htaccess file, and redirected them to our main website, but they did not work. So that is why I set up there own cpanel accounts. Now they work fine. However, my hosting company told me that I could just park the domain on our current domains account. If I can redirect all of these domain in one place, that would be great. I thought that a parked domain is considered duplicate websites, as both urls work, displaying the entire website with both urls. So Would I have to re upload our entire website to the account that I want as our main domain? Or is there another way of going about doing this?
Web Design | | hfranz0