I've tried every solution I found here on stack overflow but no success.
I'm running
- XAMPP v3.2.1 on
- Win 8.1 and
- Codeigniter 3.0.4
With the latest release of Smarty 3. All that is working fine just until the point I try to remove the 'index.php' from the URLs.
config.php
$config['base_url'] = 'localhost';
$config['index_page'] = '';
routes.php
$route['default_controller'] = 'home';
$route['contact'] = 'contact';
.htaccess
<IfModule authz_core_module>
Require all denied
</IfModule>
<IfModule !authz_core_module>
Deny from all
</IfModule>
<IfModule mod_rewrite.c>
RewriteEngine On
# !IMPORTANT! Set your RewriteBase here and don't forget trailing and leading
# slashes.
# If your page resides at
# http://www.example.com/mypage/test1
# then use
# RewriteBase /mypage/test1/
RewriteBase /responsive_template/
RewriteEngine on
RewriteCond $1 !^(index\.php|images|robots\.txt)
RewriteRule ^(.*)$ /index.php/$1 [L]
</IfModule>
<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.
# Submitted by: ElliotHaughin
ErrorDocument 404 /index.php
</IfModule>
Apache ' LoadModule rewrite_module modules/mod_rewrite.so ' enabled
<Directory />
AllowOverride all
Require all denied
</Directory>
If I access localhost/responsive_template/index.php/contact
all works fine, only the localhost/responsive_template/contact
ends with a 404 and that's it.
The whole codeigniter application folder is in a subdirectory 'responsive_template' under c:\xampp\htdocs
Thanks for any help guys, much appreciated.
BR David