Closed (fixed)
Project:
Global Redirect
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
26 Aug 2008 at 12:34 UTC
Updated:
12 Jul 2010 at 03:25 UTC
Hi,
I am converting a site whi the URLs www.site.com/page1/ I would like to use global redirect but it currently strips the trailing slash. As I dont want to re-index the site in Google I was hoping to hack the code to ensure there is a trailing slash.
Thanks
Mark
Comments
Comment #1
dnewkerk commentedSubscribing - I'm also in need of this feature (I am moving a static HTML site to Drupal with many top 10 results in Google that I've had for many years, every page of the site with trailing slashes). Even though Global Redirect provides 301 redirects, I'd still strongly prefer to stick with trailing slashes to play it safe. Losing those positions would kill my site completely.
Code on this thread (and here) indicates how to do this (in Path, Pathauto, and also including Global Redirect... very likely Drupal 5 specific, but I'll test in 5/6), though I've not yet had a chance to try it. I will update here once I see how it works. Of course an option in the module rather than hacking code would be the best :D
I also have a 3 month membership at SEOBook to use, and I plan to ask Drupal-specific questions (Aaron Wall/SEOBook has recently switched to Drupal). I will let you all know what I learn. If you have any suggestions on questions to pose to the SEO experts there, please let me know.
- David
Comment #2
nicholasthompsonI'll add a settings page to GlobalRedirect to disable this feature.
Comment #3
dutchie76 commentedExcellent! Post back when its ready and I will be more than happy to test.
Comment #4
nicholasthompsonIt is an option in 5.x-dev, need to update/sync the 6.x-dev branch.
Comment #5
nicholasthompsonMarking as fixed as this is complete in 5.x-dev and wil be in 6.x-dev when I sync the two.
Comment #6
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #7
dutchie76 commentedHi,
Just wondering if it is now possible to keep the trailing slash on URLs. Currently we have had to modify the core files to to this which is not ideal for updating the installation.
You mentioned "Marking as fixed as this is complete in 5.x-dev and wil be in 6.x-dev when I sync the two."
Please could you provide an update.
Thanks.
dutchie
Comment #8
rogoff123 commentedhi, so is this now a feature of drupal? is it possible to setup a new drupal site based on version 6 and have trailing slashes throughout the website without it affecting anything else?
Comment #9
espirates commentedany update on this ?
Comment #10
nicholasthompsonAll versions of GR have this feature now.
Comment #11
espirates commentedI tested this and drupal still strips the trailing slash.