Note that there are some explanatory texts on larger screens.

plurals
  1. POhtaccess allow only numbers after a certain point with https
    primarykey
    data
    text
    <p>i attached my current htaccess file below, it currently makes all my urls www with trailing slash at the end and if it is on and only on /prepaid/ it will be https.</p> <p>i am tring to extend this functionality, where i can also accept requests from /prepaid/refill/<em>a 10 digit phone number</em> and have it be https as well</p> <p>i started by adding this line at the bottom, but how would i extend the https part to allow from this path as well?</p> <pre><code> RewriteRule ^prepaid/refill/([0-9]+)/?$ index.php?p=prepaid&amp;phone=$1 [L] </code></pre> <p>the current code</p> <pre><code>RewriteEngine On RewriteBase / RewriteCond %{HTTP_HOST} !^www\. [NC] RewriteRule ^(.*)$ http://www.domain.com/$1 [R=301,L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_URI} !(.*)/$ RewriteRule ^(.*)$ $1/ [L,R=301] RewriteCond %{HTTPS} off RewriteCond %{QUERY_STRING} !. [NC] RewriteRule ^prepaid/?$ https://www.domain.com/prepaid/ [R=301,L] RewriteCond %{HTTPS} on RewriteRule ^prepaid/(.+) http://www.domain.com/prepaid/$1 [R=301,L,QSA] RewriteRule ^prepaid/?$ index.php?p=prepaid [L] RewriteRule ^prepaid/h2o-wireless/?$ index.php?p=prepaid&amp;s=h2o [L] RewriteRule ^prepaid/net10-wireless/?$ index.php?p=prepaid&amp;s=net10 [L] RewriteRule ^prepaid/page-plus-cellular/?$ index.php?p=prepaid&amp;s=pageplus [L] RewriteRule ^prepaid/red-pocket-mobile/?$ index.php?p=prepaid&amp;s=redpocket [L] RewriteRule ^prepaid/simple-mobile/?$ index.php?p=prepaid&amp;s=simplemobile [L] </code></pre>
    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