<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>20290</bug_id>
          
          <creation_ts>2012-12-07 11:42:49 +0000</creation_ts>
          <short_desc>redirect from URLs with trailing slashes</short_desc>
          <delta_ts>2013-02-04 15:55:13 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>webplatform.org</product>
          <component>infrastructure</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Mike Sierra">letmespellitoutforyou</reporter>
          <assigned_to name="Denis Ah-Kang">denis</assigned_to>
          <cc>denis</cc>
    
    <cc>jonathan</cc>
    
    <cc>schepers</cc>
    
    <cc>team-webplatform-admin</cc>
          
          <qa_contact name="public-webplatform-bugs list">public-webplatform-bugs</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>79640</commentid>
    <comment_count>0</comment_count>
    <who name="Mike Sierra">letmespellitoutforyou</who>
    <bug_when>2012-12-07 11:42:49 +0000</bug_when>
    <thetext>When you tell someone a URL, he often habitually adds a trailing slash as on most websites:

http://docs.webplatform.org/wiki/tutorials/device_orientation/

This results in an empty new-page UI. Suggest configuring server to redirect.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>79662</commentid>
    <comment_count>1</comment_count>
    <who name="David Kirstein (Frozenice)">frozenice</who>
    <bug_when>2012-12-07 19:22:10 +0000</bug_when>
    <thetext>Personally I think it&apos;s not an issue, I don&apos;t know anyone who does that.

Nonetheless I guess it would be possible to set up in Apache.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>79663</commentid>
    <comment_count>2</comment_count>
    <who name="Jonathan Garbee">jonathan</who>
    <bug_when>2012-12-07 19:28:25 +0000</bug_when>
    <thetext>It is just a UX issue for those that add a trailing slash.  I don&apos;t think it affects many people.  Nonetheless it can be done in apache using some rules [1].

[1] http://stackoverflow.com/questions/3082825/mod-rewrite-remove-trailing-slash-only-one</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>80236</commentid>
    <comment_count>3</comment_count>
    <who name="Mike Sierra">letmespellitoutforyou</who>
    <bug_when>2012-12-15 13:24:52 +0000</bug_when>
    <thetext>I assume there&apos;s also a marginal chance someone might casually navigate to &quot;page/&quot;, see there&apos;s no content there, then create the page even though content already exists at &quot;page&quot;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>80237</commentid>
    <comment_count>4</comment_count>
    <who name="Jonathan Garbee">jonathan</who>
    <bug_when>2012-12-15 13:31:46 +0000</bug_when>
    <thetext>I don&apos;t see any reason to go through the trouble of making a page dynamically with the content that is supposed to be there when we can do a simple .htaccess rule to get people to the right page.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>82528</commentid>
    <comment_count>5</comment_count>
    <who name="Jonathan Garbee">jonathan</who>
    <bug_when>2013-02-04 15:16:11 +0000</bug_when>
    <thetext>*** Bug 20865 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>82530</commentid>
    <comment_count>6</comment_count>
    <who name="Jonathan Garbee">jonathan</who>
    <bug_when>2013-02-04 15:17:51 +0000</bug_when>
    <thetext>In bug 20865 Doug pointed out what should be the proper rewrite rule to add to the .htaccess file. That is:

RedirectMatch permanent ^/wiki/(.*)/$ /wiki/$1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>82531</commentid>
    <comment_count>7</comment_count>
    <who name="David Kirstein (Frozenice)">frozenice</who>
    <bug_when>2013-02-04 15:23:18 +0000</bug_when>
    <thetext>Nice tagging Garbee, had already forgotten about this one. :)

Regex looks reasonable. I was just pondering if there are any (special) pages that require a trailing slash in certain cases, but couldn&apos;t think of any.

Permanent is OK, too, as we don&apos;t want to have content under the trailing-slash-URL later anyways.

So, LGTM.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>82532</commentid>
    <comment_count>8</comment_count>
    <who name="Denis Ah-Kang">denis</who>
    <bug_when>2013-02-04 15:55:13 +0000</bug_when>
    <thetext>The redirect has been added to all 5 applications servers.
Thanks Garbee!</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>