Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Do you have an <code>.htaccess</code> file in your admin directory, or just one in the root directory? You need to have one in each directory.</p> <p>I just tested this with your <code>.htaccess</code> in <code>/htdocs/pro</code> and the same <code>.htaccess</code> in <code>/htdocs/pro/admin</code> and it worked exactly as you explained. </p> <p>Root htaccess in <code>/htdocs/pro/.htaccess</code></p> <pre><code>Options -Indexes RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-l RewriteRule ^(.+)$ index.php?url=$1 [QSA,L] </code></pre> <p>Admin htaccess in <code>/htdocs/pro/admin/.htaccess</code></p> <pre><code>Options -Indexes RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-l RewriteRule ^(.+)$ index.php?url=$1 [QSA,L] </code></pre> <p>Single htaccess file for both in <code>/htdocs/.htaccess</code> or <code>/htdocs/pro/.htaccess</code></p> <pre><code>Options -Indexes RewriteEngine on # Change '/pro/' if directory is renamed RewriteBase /pro/ # Change the '/pro/' portion of the condition if directory is renamed RewriteCond %{REQUEST_URI} ^/pro/admin(.+)$ RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-l RewriteRule ^(.+)$ admin/index.php?url=$1 [QSA,L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-l RewriteRule ^(.+)$ index.php?url=$1 [QSA,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.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      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