Note that there are some explanatory texts on larger screens.

plurals
  1. POYii :: Issue Using Showscriptname = False And Url Manager
    primarykey
    data
    text
    <p>I am currently having an issue using the URL manager and/or the apache mod_rewrite or maybe something else entirely.</p> <p>With showScriptName set to false, navigating to addresses such as domain.com/login, domain.com/logout, domain.com/site/login are all behaving the same way. It simply shows the main site/index, as if I were to navigate to domain.com/eeofjew9j8jfdedfmewf (jibberish).</p> <p>Maybe it's an issue with my Yii settings? Here are those (sorry for the sloppiness):</p> <pre><code>'components'=&gt;array( 'urlManager'=&gt;array( 'urlFormat'=&gt;'path', 'showScriptName'=&gt;false, 'rules'=&gt;array( '&lt;controller:\w+&gt;/&lt;id:\d+&gt;'=&gt;'&lt;controller&gt;/view', '&lt;controller:\w+&gt;/&lt;action:\w+&gt;/&lt;id:\d+&gt;'=&gt;'&lt;controller&gt;/&lt;action&gt;', '&lt;controller:\w+&gt;/&lt;action:\w+&gt;'=&gt;'&lt;controller&gt;/&lt;action&gt;', 'login'=&gt;'site/login', 'logout'=&gt;'site/logout', 'register'=&gt;'users/register' ), ,... </code></pre> <p>Here is how I have my .htaccess setup in the www root:</p> <pre><code>RewriteEngine on # if a directory or a file exists, use it directly RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d # otherwise forward it to index.php RewriteRule . index.php </code></pre> <p>I am using a VPS server, so I have root access to make any changes needed to apache. I've checked my phpinfo and mod_rewrite is running and enabled. In my apache config, I have for my www directory:</p> <pre><code>AllowOverride All Options Indexes FollowSymLinks MultiViews Order allow,deny Allow from all </code></pre> <p>I've been scratching my head on this issue through 3 different hosts (godaddy, dreamhost, and lithiumhosting) so I'm assuming it's an issue on my end with this. Now that I have a VPS though, I'm hoping I can finally figure out my issue and solve it. </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.
 

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