diydeveloper / cms-canvas

Laravel CMS
36 stars 33 forks source link

Unable to route to admin #5

Closed blpraveen closed 10 years ago

blpraveen commented 10 years ago

I get page not found when try to access the following urls

http://localhost/tpd/cmscanvas/index.php/sitemin/ http://localhost/tpd/cmscanvas/index.php/dashboard/admin/ http://localhost/tpd/cmscanvas/index.php/dashboard/admin/dashboard/

dansanti commented 10 years ago

Hi! this sound like .htaccess problem,make sure that your already have activated mod_rewrite on apache and then make a file tpd/cmscanvas/.htaccess and put in this:

Options -Indexes

RewriteEngine on ``` RewriteBase / # Remove access to system folder RewriteCond $1 ^system.* RewriteRule ^(.*)$ /index.php/$1 [L] # Remove access to system folder RewriteCond $1 ^assets/cms/cache.* RewriteRule ^(.*)$ /index.php/$1 [L] # Allow access to asset directories RewriteCond $1 ^application.* RewriteCond $1 !(assets.*) RewriteRule ^(.*)$ /index.php/$1 [L] # Allow access to asset directories RewriteCond $1 ^themes.* RewriteCond $1 !(assets.*) RewriteRule ^(.*)$ /index.php/$1 [L] # Check if user is accessing a file or folder that already exists RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php/$1 [L] ```

<IfModule !mod_rewrite.c>

If we don't have mod_rewrite installed, all 404's

# can be sent to index.php and everything works as normal.
ErrorDocument 404 /index.php

diydeveloper commented 10 years ago

+1 most likely a .htaccess issue.