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

dnewkerk’s picture

Assigned: dutchie76 » Unassigned
Category: support » feature

Subscribing - 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

nicholasthompson’s picture

Title: Do not remove trailing slash » Make remove trailing slash an option
Version: 6.x-1.0 » 7.x-1.x-dev
Assigned: Unassigned » nicholasthompson
Priority: Normal » Critical

I'll add a settings page to GlobalRedirect to disable this feature.

dutchie76’s picture

Excellent! Post back when its ready and I will be more than happy to test.

nicholasthompson’s picture

It is an option in 5.x-dev, need to update/sync the 6.x-dev branch.

nicholasthompson’s picture

Status: Active » Fixed

Marking as fixed as this is complete in 5.x-dev and wil be in 6.x-dev when I sync the two.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.

dutchie76’s picture

Priority: Critical » Normal

Hi,

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

rogoff123’s picture

hi, 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?

espirates’s picture

Status: Closed (fixed) » Active

any update on this ?

nicholasthompson’s picture

Status: Active » Closed (fixed)

All versions of GR have this feature now.

espirates’s picture

I tested this and drupal still strips the trailing slash.