Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Apologies for creating 3 issues in one day.
What are the SEO complications for having these subdomains? As they are full subdomains (rather than point directly to the relevant folders, like /files/ etc), they are accessible by google etal. Our content would be seen as being duplicated over the three extra subdomains.
Am I right or is there someway of disallowing those domains being crawled?
Thanks,
Paul.
Comments
Comment #1
mikeytown2 CreditAttribution: mikeytown2 commentedSee
#579624: Redirect non image/css/js requests from cdn1.example.com to example.com or www.example.com
Also be aware that for some reason javascript doesn't work correctly with this, so .js files get 301-ed for some reason. I don't use js parallelization on my site since I only have 1 file to download anyway.
Comment #2
techypaul CreditAttribution: techypaul commentedHi,
Thats exactly what I was looking for - I spent ages on google looking for the right wording to make it happen. Thanks for your advice, I'll attempt to make the changes! By leaving the JS field empty it won't get parallelised? Suits me anyway with JS Query prob.
Thanks,
Paul.
Comment #3
mikeytown2 CreditAttribution: mikeytown2 commentedI don't think you could have found those rewrite rules on Google; came up with them my self, just for this project.
Yes leave it blank and it does not get "paralleled".
Comment #4
Lazarevac CreditAttribution: Lazarevac commentedDo you suggest it would work for add-on domains too? We had few issues with add-on domains where Google reported double content for addondomain.example.com and addondomain.com since these contents were actually equal...
Comment #5
mikeytown2 CreditAttribution: mikeytown2 commented@Lazarevac
Your situation is different and not related this, the parallel module.
Comment #6
chadd CreditAttribution: chadd commentedwhen i add the .htaccess rules you linked to in #1, yslow downgrades me in the "avoid URL redirects" category.
is that something that I should be concerned with? Personally, I didn't notice any performance changes one way or the other...
Comment #7
mikeytown2 CreditAttribution: mikeytown2 commentedAre you using the ones from http://drupal.org/node/579624#comment-2120792?
if your getting that from yslow it means your getting nothing, as in parallel isn't doing anything then; its redirecting back to your domain from the subdomains.
What does the network tab say in firebug?
Comment #8
chadd CreditAttribution: chadd commentedi was using the rules from the OP, not that comment.
rules from the comment worked. thanks.
Comment #9
mikeytown2 CreditAttribution: mikeytown2 commentedPlace this above boost rules if you have any; otherwise this goes below
# RewriteBase /
in your htaccess file.This will redirect all non image/javascript/css requests back to www.example.com via 301 redirect. Be sure to replace example.com with your own site name; also remove the
www.
if you don't want that.Another example using drupal.org
Comment #10
heyyo CreditAttribution: heyyo commentedNot sure if it's related but on my images are not indexed on my website where I use modules parallel. I checked my robots.txt and path to images is not blocked.
my webite: seasecret .biz
Comment #11
mikeytown2 CreditAttribution: mikeytown2 commented@heyyo
I think it has to do with your images being inside a .swf file
Comment #12
vkr11 CreditAttribution: vkr11 commentedSusbscribe
Comment #13
heyyo CreditAttribution: heyyo commented@mikeytown2
Forget my issue my images are now indexed.
Comment #14
mikeytown2 CreditAttribution: mikeytown2 commented#352180: Better, multi-site friendly "www." addition/removal in .htaccess Need to track this so this htaccess trick will work with multisite's easily.
Comment #15
shopdogg CreditAttribution: shopdogg commentedsubscribe
Comment #16
Rosamunda CreditAttribution: Rosamunda commentedsubscribe.
Comment #17
Wim LeersWill be obsoleted by #933942: Merge Parallel and CDN modules: migration path.
Comment #18
stevethewebguy CreditAttribution: stevethewebguy commentedI use this to make sure the sub dose not serve anything but the kind of content it's suppose to (also ensures no canonical issue from the requesting, www, domain):
I only use one "static" "cdn" domain, if you're using multiple, you'll need to make a copy of both for as many as you need. Here is an example of redirecting an "img", "static", and "www" domains properly:
See what I did there for adding another? Two more rules required, let me know if this is helpful, or someone finds it flawed.
Comment #19
vishalchavda CreditAttribution: vishalchavda commentedHello
I have a similar set up as yours with 1 sub-domain that is created via CNAME.
so to simplify i have
http://example.com ==> main site
cdn1.example.com ==> CNAME - created for CDN to deliver images only
The cdn1 folder is empty i.e. no files stored. ==> Is this Ok or do i need to copy the folder structure from my main site ?
I have set up the CDN module to serve .image files from the cdn1 location.
I tested your rewrite rules but I cant get them to work. i.e. links from the cdn1 are not redirected to the main site's image folder.
regards