Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>First verify that the server is parsing the .htaccess file. This is simply done by placing random text in the .htaccess file such as </p> <pre><code>CREATE AN ERROR </code></pre> <p>If this gives you a server error then the file is being parsed. You may have to move the .htaccess file up a directory to get this to work.</p> <p>After this is working check to make sure the rewrite module in Apache is on. First check phpinfo and look for the running module. If not you may have to delete the comment (#) character in front of the module.</p> <p>After the module shows up in phpinfo then see if you can do a basic rewrite to make sure that there are not problems with Apache.</p> <pre><code>RewriteEngine on RewriteRule ^ http://google.com/? [L,R] </code></pre> <p>If that is not working try adding the </p> <pre><code>Options +SymLinksIfOwnerMatch </code></pre> <p>to the file</p> <p>Once you have Apache doing it's part now it is up to yii. This code:</p> <pre><code>RewriteEngine On RewriteBase /mybasedirectory RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)\?*$ index.php/$1 [L,QSA] </code></pre> <p>adds the rewrite base option which may be necessary if you do not have the files in the document root such as htdocs</p> <p>finally if that does not solve the problem then limit your rule to a simple rule such as </p> <pre><code> 'contact'=&gt;'site/contact', </code></pre> <p>and see if at least redirects to where you think it should. Of course you may have to check the basic rules of .htaccess again to make sure that overide is allowed and there isn't an errant .htaccess in a subdirectory. I hope that helps. I finally got mine working.</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. VO
      singulars
      1. This table or related slice is empty.
    2. 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