Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p><strong>.htaccess</strong></p> <pre><code>RewriteEngine On # generic: ?var=value # you can retrieve /something by looking at $_GET['something'] RewriteRule ^(.+)$ /?var=$1 # but depending on your current links, you might # need to map everything out. Examples: # /users/1 # to: ?p=users&userId=1 RewriteRule ^users/([0-9]+)$ /?p=users&userId=$1 # /articles/123/asc # to: ?p=articles&show=123&sort=asc RewriteRule ^articles/([0-9]+)/(asc|desc)$ /?p=articles&show=$1&sort=$2 # you can add /? at the end to make a trailing slash work as well: # /something or /something/ # to: ?var=something RewriteRule ^(.+)/?$ /?var=$1</code></pre> <p>The first part is the URL that is received. The second part the rewritten URL which you can read out using <code>$_GET</code>. Everything between <code>(</code> and <code>)</code> is seen as a variable. The first will be <code>$1</code>, the second <code>$2</code>. That way you can determine exactly where the variables should go in the rewritten URL, and thereby know how to retrieve them.</p> <p>You can keep it very general and allow "everything" by using <code>(.+)</code>. This simply means: one or more (the <code>+</code>) of any character (the <code>.</code>). Or be more specific and e.g. only allow digits: <code>[0-9]+</code> (one or more characters in the range 0 through 9). You can find a lot more information on regular expressions on <a href="http://www.regular-expressions.info/" rel="nofollow">http://www.regular-expressions.info/</a>. And this is a good site to test them: <a href="http://gskinner.com/RegExr/" rel="nofollow">http://gskinner.com/RegExr/</a>.</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. VO
      singulars
      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