I am working on website on which under the root, i have under construction page. I have upload the files for the new site in folder newsite, which is in the root directory.
I use .htaccess file to remove the index.php from the domain.
If i type http://www.somesite.com/newsite, or http://www.somesite.com/newsite welcome controller is displayed. So far, so good.
I have back office administration system, and when i type:
http://www.somesite.com/newsite/folderName/controllername/functionname i get 404 error.
folderName is the name of the folder in which controllers for the back office are placed. Anyone have any idea why i get this error for the back end only, while the front page is working?
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond $1 !^(index\.php|images|robots\.txt)
RewriteRule ^(.*)$ /index.php/$1 [L]
php_value post_max_size 20M
php_value upload_max_filesize 20M
php_value max_execution_time 6000000
If I add index.php in the url for the back office like this
http://www.somesite.com/newsite/index.php/folderName/controllername/functionname
Then the page is displayed.
Regards,Zoran
After adding the
RewriteBase /newsite/in the.htaccess, page is displayed, and now works like a charm.