• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Blaze Htaccess error

#1
[eluser]Bnoe[/eluser]
i am try to install blaze cms
i got an error

when access
http://localhost/blaze/admin/ => work fine
http://localhost/blaze/admin => redirect to http://localhost/admin

my .htaccess

Code:
RewriteEngine On
RewriteBase /blaze/

# Add Trailing Slash (Force it!) - It looks cool :)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_URI} !(.*)/$
RewriteRule ^(.*)$ http://localhost/blaze/index.php/$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]

#2
[eluser]Yash[/eluser]
Why do you want to edit Htaccess so much..

Just Paste this in htaccess

Code:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]

Now open config file remove index.php

you are done Smile

#3
[eluser]Bnoe[/eluser]
sorry.. please i am using blaze.. it's only work on normal codeigniter


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.