Rewrite rule working fine, apart from when I post any forms – the url that the data gets posted to is domain/index.php/index.php/controller/method.
Any ideas? Already tried may responces on here.
HT Access:
# rewrite rules
RewriteEngine On
# ditch index.php
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php?/$1 [L]
You can remove index.php from $config[‘index_page’] = ‘index.php’; variable found in config.php file. full path application/config/config.php.
Replace
from
Hope it will work for you.