Blaze - The start of something hot! |
[eluser]phpwebdev[/eluser]
[quote author="Elliot Haughin" date="1203715313"]All admin pages start admin/module/function Just make sure your htaccess is right and it should work fine.[/quote] Sorry for request, but can Your share with us htaccess file ?
[eluser]Pascal Kriete[/eluser]
A regular old 'wordpress' htaccess file or similar should work. Here's mine: Code: RewriteEngine on
[eluser]strogg[/eluser]
RewriteEngine on RewriteRule ^$ index.php RewriteCond $1 !^(index\.php|img|css|javascript|static|application|public|js|video_files|libraries|fckeditor|editor|robots\.txt|favicon\.ico) RewriteRule ^(.*)$ index.php/$1
[eluser]Elliot Haughin[/eluser]
Guys.... So sorry!!! I forgot the htaccess wasn't included in the zip... here's a copy: Code: <IfModule mod_rewrite.c> That should get you fired up
[eluser]strogg[/eluser]
Elliot, login form wont working for me, I used your updated .htaccess
[eluser]phpwebdev[/eluser]
[quote author="strogg" date="1203783922"]Elliot, login form wont working for me, I used your updated .htaccess[/quote] Hi strogg Need to change this 2 rows RewriteBase / RewriteRule ^(.*)$ http://cms.dev/$1/ [R=301,L] Example a): if u use sub folder called(blaze) and u server called "server.com" need to be RewriteBase /blaze/ RewriteRule ^(.*)$ http://server.com/$1/ [R=301,L] Try it Or check on the u database table called "users" password field must be "730e59c62bc884a401c0a61480e69ae074708da4" Regards
[eluser]krasnik[/eluser]
I also can not login to the admi section. I just changed the .htaccess to the (my) values shown above. but i get redirected to the login page every time. Did i miss some settings?
[eluser]strogg[/eluser]
Installation on blaze folder, host is localhost http://localhost/blaze My .htaccess is; <IfModule mod_rewrite.c> RewriteEngine On RewriteBase /blaze # Add Trailing Slash (Force it!) - It looks cool RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_URI} !(.*)/$ RewriteRule ^(.*)$ http://localhost/blaze/$1/ [R=301,L] # Admin 'dashboard' RewriteRule ^admin$ index.php/admin [L] RewriteRule ^admin/$ index.php/admin/ [L] # Admin functions within Admin module and controller RewriteRule ^admin/(navigation|users|settings|login|logout)$ index.php/admin/$1 [L] RewriteRule ^admin/(navigation|users|settings|login|logout)/(.*)$ index.php/admin/$1/$2 [L] RewriteRule ^admin/nav_(.*)$ index.php/admin/nav_$1 [L] # All others, push to the module in question RewriteRule ^admin/([a-zA-Z]*)$ $1/admin [L] RewriteRule ^admin/([a-zA-Z]*)/(.*)$ $1/admin/$2 [L] # Any request were the file or directory doesn't exist... # Push to CI RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php/$1 [L] </IfModule> Also, user table has correct value, admin@blaze but not working
[eluser]phpwebdev[/eluser]
[quote author="strogg" date="1203810567"]Installation on blaze folder, host is localhost http://localhost/blaze My .htaccess is; <IfModule mod_rewrite.c> RewriteEngine On RewriteBase /blaze # Add Trailing Slash (Force it!) - It looks cool RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_URI} !(.*)/$ RewriteRule ^(.*)$ http://localhost/blaze/$1/ [R=301,L] # Admin 'dashboard' RewriteRule ^admin$ index.php/admin [L] RewriteRule ^admin/$ index.php/admin/ [L] # Admin functions within Admin module and controller RewriteRule ^admin/(navigation|users|settings|login|logout)$ index.php/admin/$1 [L] RewriteRule ^admin/(navigation|users|settings|login|logout)/(.*)$ index.php/admin/$1/$2 [L] RewriteRule ^admin/nav_(.*)$ index.php/admin/nav_$1 [L] # All others, push to the module in question RewriteRule ^admin/([a-zA-Z]*)$ $1/admin [L] RewriteRule ^admin/([a-zA-Z]*)/(.*)$ $1/admin/$2 [L] # Any request were the file or directory doesn't exist... # Push to CI RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php/$1 [L] </IfModule> Also, user table has correct value, admin@blaze but not working[/quote] Hi This RewriteRule ^(.*)$ http://localhost/blaze/$1/ [R=301,L] must be RewriteRule ^(.*)$ http://localhost/$1/ [R=301,L]
[eluser]strogg[/eluser]
Interesting. If I change RewriteRule ^(.*)$ http://localhost/blaze/$1/ [R=301,L] to RewriteRule ^(.*)$ http://localhost/$1/ [R=301,L] admin panel redirecting to http://localhost/admin/ , it is 404 page |
Welcome Guest, Not a member yet? Register Sign In |