Where does rel=canonical go? One file that manages sort order, view, filters, etc...
-
Where do I put the rel=canonical when the search.cfm (using URL re-write) page is the one and only page, just using url parameters to control sort, filter, view, etc.
Do I just put the rel=canonical at the top of the search.cfm page? The duplicate content issues I am getting are:
Just want to be clear since Moz Pro is picking up both URL's but it's only really one file, search.cfm
Thanks in advance for your help.
-
If we are using dynamic coding so that the search results page is just one page of code for ALL cities, then I assume that we need to just add dynamic logic at the top of the page for the tag to be dynamic based on the city URL in the URL, right?
Then when this one page loads for any city and any url parameter, it will just be custom, for example:
URL: domain.com/tx/austin?urlparameters.....
LINK: domain.com/tx/austinURL: domain.com/ca/los-angeles?urlparameters.....
LINK: domain.com/ca/los-angelesIs that correct? This will just be dynamic logic in our codebase on the one template?
-
Hi Ernie,
In your case, I would put on the page "domain.com/tx/austin".
This will ensure that any URL parameters added after the URL, will still load the canonical tag that was placed.
Hope this helps.
Jac
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
-
Hreflang and canonical
Hi all, I'm hoping someone can help me solve this once and for all! I keep getting hreflang errors on our site crawls and I cannot understand why. Does anything here look off to you? Thank you! JGdWcqu
Technical SEO | | eGInnovations1 -
MOving from one page format to another
I have a page that I optimized for a valuable keyword (at least it is to me!) and it gets very good traffic. Problem is that the page needs to constantly updated with new "news" related to the topic area. I have developed a page-type that will have the same static content as the original page, but it will now automtaically index related content from the rest of the site so the "news" section stay fresh and up-to-date. I am now okay to do something like permanently redirect that page to the newly built one? I have also run the newly designed page through tests on Moz and it receives on receives an A-grade from the on-page optimization tool. I am just wanting to ensure I cover all bases, because I do not want to risk losing the top search result and all that valuable traffic.
Technical SEO | | kevgrand0 -
One more redirect question
If there are two URLs like below: example.com/toys/batman-toys
Technical SEO | | IceIcebaby
example.com/birthday/batman-toys Both have the exact same everything, except URL key. The first example ranks for all KWs and search terms in the SEs. Does having the second page hurt my ranking potential for the first page? Should I redirect the 2nd page to the first or just leave it? As always, thanks for your help.0 -
Canonical needed after no index
Hi do you need to point canonical from a subpage to main page if you have already marked a no index on the subpage, like when google is not indexing it so do we need canonicals now as is it passing any juice?
Technical SEO | | razasaeed0 -
One of my websites has dropped ranking dramatically.
Hi Everyone. I have a website which is: http://goo.gl/0CZjG This used to be on page 1 of google for the main keyword which is "Wedding Favours". but I cannot see the reason why it has really dropped it is on around page 40 now. Can someone maybe point out where I can start to recover this ? Any help or advise is really appreciated.
Technical SEO | | QuattroMedia0 -
Rel Canonical ? please help
Can some one please answer a question for me, I have a crawl error stating that I have [#### Rel Canonical 326](http://pro.seomoz.org/campaigns/243472/issues/18) Can you please advise me on how serious these Errors are? I was told by one person not to worry but It seems far to many to me. thanks
Technical SEO | | Chris__Chris0 -
Canonical tags
How hard is it to put in Canonical tags on a webpage? My web guy didn't do it because he put in redirects in place for all old URLs and all content
Technical SEO | | Boodreaux
(except error pages and advanced searches) should have a unique URL. By not having canonical tags does it lose link juice? Not sure if that question makes sense. 🙂 Poo1 -
Syndication: Link back vs. Rel Canonical
For content syndication, let's say I have the choice of (1) a link back or (2) a cross domain rel canonical to the original page, which one would you choose and why? (I'm trying to pick the best option to save dev time!) I'm also curious to know what would be the difference in SERPs between the link back & the canonical solution for the original publisher and for sydication partners? (I would prefer not having the syndication partners disappeared entirely from SERPs, I just want to make sure I'm first!) A side question: What's the difference in real life between the Google source attribution tag & the cross domain rel canonical tag? Thanks! PS: Don't know if it helps but note that we can syndicate 1 article to multiple syndication partners (It would't be impossible to see 1 article syndicated to 50 partners)
Technical SEO | | raywatson0