I have aYii1 project i recently moved to a new server but can’t get the pages to work properly. My directory structure looks something like this
backend/www/.htaccess
common/
components/
config/
params.php
params-local.php *
lib/
migrations/
models/
Comment.php
Extension.php
...
console/
commands/
SitemapCommand.php
...
config/
main.php
main-local.php
params.php
params-local.php
runtime/
frontend/
components/
config/
main.php
main-local.php
params.php
params-local.php
controllers/
SiteController.php
...
lib/
models/
ContactForm.php
SearchForm.php
runtime/
views/
www/ .htaccess
yiic
yiic.bat
.htaccess
in the main .htaccess
i have this
Options +FollowSymlinks
RewriteEngine On
# deal with admin first
RewriteCond %{REQUEST_URI} ^/(admin)
RewriteRule ^admin/assets/(.*)$ backend/www/assets/$1 [L]
RewriteRule ^admin/css/(.*)$ backend/www/css/$1 [L]
RewriteCond %{REQUEST_URI} !^/backend/www/(assets|css)/
RewriteCond %{REQUEST_URI} ^/(admin)
RewriteRule ^.*$ backend/www/index.php [L]
RewriteCond %{REQUEST_URI} ^/(assets|css)
RewriteRule ^assets/(.*)$ frontend/www/assets/$1 [L]
RewriteRule ^css/(.*)$ frontend/www/css/$1 [L]
RewriteRule ^js/(.*)$ frontend/www/js/$1 [L]
RewriteRule ^images/(.*)$ frontend/www/images/$1 [L]
RewriteCond %{REQUEST_URI} !^/(frontend|backend)/www/(assets|css)/
RewriteCond %{REQUEST_URI} !index.php
RewriteCond %{REQUEST_FILENAME} !-f [OR]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^.*$ frontend/www/index.php
in my frontend/www/.htaccess
, i have this
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php?/$1 [L]
http://blabla.com/
works, but when i go to http://blabla.com/about/
i get The requested URL was not found on this server.
It works fine on my localhost (using MAMP on windows), but not on my web server (UBUNTU)
Any idea how to fix this? Thanks