Note that there are some explanatory texts on larger screens.

plurals
  1. POHaving Trouble with RewriteRule syntax and configuration, challenging
    primarykey
    data
    text
    <p>I'm really struggling with the syntax of a Rewrite Rule. I'm hoping you can help. </p> <p>I used a node package module to create a bunch of html snapshots of a super ajaxy site. The module outputs the snapshots in a diretory named as the URL for later use with escape_fragment rewrite rules. So exampledomain.net/a45.php?lang=eng is output as ./snapshots/a45.php?lang=eng/index.html. So to cd into that directory I have to of course escape the special characters. </p> <p>I am attempting to Rewrite <a href="http://testdomain.net/a45.php?lang=eng" rel="nofollow">http://testdomain.net/a45.php?lang=eng</a> to <a href="http://testdomain.net/snapshots/a45.php?lang=eng/index.html" rel="nofollow">http://testdomain.net/snapshots/a45.php?lang=eng/index.html</a> and I cannot get my rewrite rules to work. </p> <p>Here's the syntax I've tried: in an .htaccess file in the subdirectory</p> <pre><code>Options +FollowSymLinks RewriteEngine On ReWriteBase /var/www/vhosts/testdomain.net/httpdocs/secure/clients/amg/3dot0 RewriteRule ^a45\.php?lang=eng$ /snapshots/a45.php?lang=eng/index.html </code></pre> <p>I have also tried it with and without RewriteBase. I've also tried the same as above with the second url escaped and with a couple different characters on the first url ALL to no avail... OH and I was sure to enable Allowoverride all on the entire httpdocs directory as well in the main vhost.conf file -- I know that directive is working becuase Options +Indexes allows me to browse directories throughout this tree.</p> <p>Any advice or clues are appreciated greatly!</p>
    singulars
    1. This table or related slice is empty.
    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.
    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