Re: [Radiant] Trailing slash for URLs

2010-04-10 Thread john muhl
On Sat, Apr 10, 2010 at 11:07 AM, Christian Aust
christian.a...@software-consultant.net wrote:
 Hi all,

 search engines consider URLs /some-page and /some-page/ to be two different 
 pages (well, at least Google analytics does). I'd like to get rid of that.

 Would you expect Radiant to redirect clients to the trailing-slash-form of an 
 URL, or should that be the duty of the web server above?

 Any comments are appreciated. Regards,

if the issue is people manually typing or linking to your pages in
inconsistent ways then i think sticking a rewrite rule in your server
config is the easiest way. however if the issue is that your site
template uses inconsistent urls then i'd fix that first.
___
Radiant mailing list
Post: Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
List Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Radiant: http://radiantcms.org
Extensions: http://ext.radiantcms.org


Re: [Radiant] Trailing slash for URLs

2010-04-10 Thread Jim Gay
On Sat, Apr 10, 2010 at 12:33 PM, john muhl johnm...@gmail.com wrote:
 On Sat, Apr 10, 2010 at 11:07 AM, Christian Aust
 christian.a...@software-consultant.net wrote:
 Hi all,

 search engines consider URLs /some-page and /some-page/ to be two different 
 pages (well, at least Google analytics does). I'd like to get rid of that.

 Would you expect Radiant to redirect clients to the trailing-slash-form of 
 an URL, or should that be the duty of the web server above?

 Any comments are appreciated. Regards,

 if the issue is people manually typing or linking to your pages in
 inconsistent ways then i think sticking a rewrite rule in your server
 config is the easiest way. however if the issue is that your site
 template uses inconsistent urls then i'd fix that first.

I second that. If you want to ensure the trailing slash use nginx or
Apache or if you want that in your project, use
http://github.com/jtrupiano/rack-rewrite


-- 
Jim Gay
http://www.saturnflyer.com

http://www.saturnflyer.com/blog/jim/2010/04/02/commenting-in-radiantcms-with-a-gem/
___
Radiant mailing list
Post: Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
List Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Radiant: http://radiantcms.org
Extensions: http://ext.radiantcms.org