<?xml version="1.0" encoding="utf-8"?><?xml-stylesheet title="XSL formatting" type="text/xsl" href="https://uname.pingveno.net/blog/index.php/feed/rss2/xslt" ?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title># uname -a - Mot-clé - rewrite</title>
    <link>https://uname.pingveno.net/blog/index.php/</link>
    <atom:link href="https://uname.pingveno.net/blog/index.php/feed/tag/rewrite/rss2" rel="self" type="application/rss+xml" />
    <description>Le blog de uname.pingveno.net</description>
    <language>fr</language>
    <pubDate>Tue, 18 Aug 2026 13:46:21 +0200</pubDate>
    <copyright>Mathieu Pellegrin</copyright>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
    <generator>Dotclear</generator>
          <item>
        <title>GetSimple: URL index/something returns 404</title>
        <link>https://uname.pingveno.net/blog/index.php/post/2014/02/03/GetSimple-CMS-%3A-URL-index/something-returns-404</link>
        <guid isPermaLink="false">urn:md5:3639ea02711bb850d0f9a7555f29761c</guid>
        <pubDate>Mon, 03 Feb 2014 11:25:00 +0100</pubDate>
        <dc:creator>Mathieu</dc:creator>
                  <category>Hacks</category>
                          <category>apache</category>
                  <category>bug</category>
                  <category>GetSimple</category>
                  <category>hack</category>
                  <category>htaccess</category>
                  <category>multiviews</category>
                  <category>rewrite</category>
                <description>          &lt;h3&gt;Problem&lt;/h3&gt;
&lt;p&gt;While using &lt;strong&gt;GetSimple&lt;/strong&gt; with &lt;strong&gt;FancyURLs&lt;/strong&gt; (Apache Rewrite), every menu item nested under the home page returned a 404.&lt;/p&gt;
&lt;p&gt;The (rewritted) URL of the home page is &lt;strong&gt;/index&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;The sub-pages URLs are rendered as &lt;strong&gt;index/something&lt;/strong&gt;, and triggered a 404 error.&lt;/p&gt;
&lt;h3&gt;Solution&lt;/h3&gt;
&lt;p&gt;Disable &lt;strong&gt;MultiViews&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;MultiViews is an Apache mechanism for automatically switching wich document is sent to the user, based on the &lt;code&gt;Accept&lt;/code&gt; header. Because the front controller is named &lt;code&gt;index.php&lt;/code&gt;, MultiViews was trying to reach &lt;code&gt;index.php/something&lt;/code&gt; instead of (as specified in RewriteRules) &lt;code&gt;index.php?id=index/something&lt;/code&gt;.&lt;/p&gt;
&lt;h3&gt;How to do it&lt;/h3&gt;
&lt;p&gt;Open the GetSimple &lt;strong&gt;.htaccess&lt;/strong&gt; file, and locate&amp;#160;:&lt;/p&gt;
&lt;blockquote&gt;&lt;p&gt;&lt;code&gt;Options -Indexes&lt;/code&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Change to&amp;#160;:&lt;/p&gt;
&lt;blockquote&gt;&lt;p&gt;&lt;code&gt;Options -Indexes -MultiViews&lt;/code&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;h3&gt;See also&lt;/h3&gt;
&lt;ul&gt;&lt;li&gt;&lt;a href=&quot;http://get-simple.info/forums/showthread.php?tid=5223&quot; hreflang=&quot;en&quot;&gt;http://get-simple.info/forums/showthread.php?tid=5223&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</description>
        
              </item>
      </channel>
</rss>
