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
-
Does a similar CMS fabric/theme used by 2 colleagues, cause SEO issues?
Does using the same CMS fabric/theme with substantially different content for each website but the same business address (on google places and the websites) cause SEO issues? For example: 2 colleagues with somewhat similar services located at the same business addresses desire to use the same CMS fabric /theme but will have different content on the sites. Will this hurt their SEO / should they use a different website skin/theme?
Web Design | | toti5880 -
I'm doing a crawl analysis for a website and finding all these duplicate URLs with "null" being added to them and have no clue what could be causing this.
Does anyone know what could be causing this? Our dev team thinks it's caused by mobile pages they created a while ago but it is adding 1000's of additional URLs to the crawl report and being indexed by Google. They don't see it as a priority but I believe these could be very harmful to our site. examples from URL string:
Web Design | | julianne.amann
uruguay-argentina-chilenullnull/days
rainforests-volcanoes-wildlifenullnull/reviews
of-eastern-europenullnullnullnull/hotels0 -
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 -
Second Store URL
Our store has been up and running for about 18 months and has been more successful than expected. Unfortunately we have run into a few minor issues with customers wanting to pick up in store but much of the online parts we sell are drop ship. We have made the decision to open a second store. One will support our brand (using current URL)and reflect products and pricing we offer at our B&M locations. The second will continue down the path we have been going but under a completely different brand (and URL) in no way tied to our B&M stores. My question is this: Would it be smarter to re brand the store we have now and change the URL.?We would then create the second site as our corporate branded site. Or do we adjust the currently site and then create a second site with the new brand. The only real hold up is that the re branded store will generate far more revenue and the current site is optimized very well. However if i change the URL the optimization will go out the window .
Web Design | | Rillik0 -
How can I fix New 4XX Issue on Site Crawl?
Hi all, My recent site crawl shows 27 4xx issues on this website http://www.rrbusinessconsultants.com/ All of them are for 'posts' on this wordpress website. Here is an example of the issue: http://www.rrbusinessconsultants.com/rr-business-consultants-on-the-rise-of-glassdoor-and-how-companies-are-coping/void(null) The blog page seems to be creating links ending in void(null) which are defaulting to 404 pages. I cannot see the links on the site so cannot see how to remove them. Can anyone provide any insight into how to correct his issue? Many thanks in advance.
Web Design | | skehoe0 -
URL Structure's Effect on SEO
Hello all, I have a client who currently has a very poor URL structure. As it stands, their URLs are formatted in the following manner: http://www.domain.com/category/subcategory/page In all my years of SEO, however, I have always tried to implement the following format: http://www.domain.com/category/page The web designer for this particular project has been very reluctant to change the structure for obvious reasons, but I'm convinced that by modifying the URL structure, SEO will improve. I am correct in thinking this? Likewise, if I am able to get the URL structure changed, what do I need to look out for to make sure we don't lose any traction for our keyword terms? Any and all insight/suggestions is greatly appreciated. Thanks for reading!
Web Design | | maxcarnage0 -
Wordpress drop down menu issue...
While I am tweaking my current site with getting rid of my footer links, my site will not allow a drop down menu for my service area parent page. It will do a drop down menu for any other tab. Could not find anything in a google search besides just link to parent for drop down... Any ideas?
Web Design | | greenjoe0 -
Is it necessary to redirect every Error page (404 or 500) found?
If I have Hundreds of pages with 404 and 500 erros should set up 301 redirects for all of them? Some of the pages have external links, some don't.
Web Design | | jmansd0