Note that there are some explanatory texts on larger screens.

plurals
  1. PO.htaccess appending query string to internal redirect
    primarykey
    data
    text
    <p>I’m trying to create SEO friendly masked rewrites in .htaccess. The htaccess file works fine on localhost, and my personal server, but seems unfortunately does not work on GoDaddy’s servers. I'm aware that that's already an issue there, But working for a client who's set on using Godaddy as their host.</p> <p>The issue is that the rewrite seems to be forcing a redirect showing the rewritten querystring in the browser URL bar instead of keeping it internal. eg.</p> <p>Rule:</p> <pre><code>RewriteRule ^/?([a-zA-Z0-9-_/]*)$ /index.php?loadPage=$1&amp;mode=cms [L,QSA] </code></pre> <p>Link: <code>/images</code> Redirecting to <code>/images/?loadPage=images&amp;mode=cms</code></p> <p>this “should” stay as <code>/images/</code> for the browser. I have copied my short <code>.htaccess</code> below, IPs modified for the development block</p> <pre><code>&lt;Files .htaccess&gt; deny from all &lt;/Files&gt; Options -MultiViews +FollowSymlinks -Indexes RewriteEngine On RewriteBase / # Stop Old redirection from block below RewriteCond %{REQUEST_URI} "/old/" RewriteRule (.*) $1 [L] # Under construction Redirect RewriteCond %{REMOTE_ADDR} !^0.0.0.0 RewriteCond %{REQUEST_URI} !^/?old/ RewriteRule ^/?(.*) “/old/$1″ [L,QSA] #Admin utilities rewrite RewriteRule ^/?admin/?(.*)$ /index.php?loadPage=$1&amp;mode=backend [L,QSA] #CMS/Frontend rewrites -- this one is failing RewriteRule ^\/?([a-zA-Z0-9-_]+)\/?$ /index.php?loadPage=$1&amp;mode=cms [QSA,L] </code></pre> <p>A hint of potential note is that the displayed url is <code>/images/?query_string</code>, NOT <code>index.php?query_string</code>, so it's not doing a full redirect, though external requests are receiving a 301 response from the page request.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload