CodeIgniter Forums
how do you bypass .htaccess? - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forum-21.html)
+--- Thread: how do you bypass .htaccess? (/thread-32956.html)



how do you bypass .htaccess? - El Forum - 08-10-2010

[eluser]Unknown[/eluser]
i've set codeigniter to do: domainname.com/home instead of domainname.com/index.php?var=home by editing .htaccess.

i now have magento folder, so whenever i do: domainname.com/magento, .htaccess tries to use codeigniter's "index.php" to process "magento" and results in error. i just want to install magento separate from codeigniter.

How do I bypass this and still be able to use codeigniter?


how do you bypass .htaccess? - El Forum - 08-10-2010

[eluser]cahva[/eluser]
This is in the userguide:
Quote:RewriteEngine on
RewriteCond $1 !^(index\.php|images|robots\.txt)
RewriteRule ^(.*)$ /index.php/$1 [L]

That RewriteCond is translated: if url doesnt start with index.php, images or robots.txt then rewrite the url.
I you have similar, add magento folder to RewriteCond.


how do you bypass .htaccess? - El Forum - 08-10-2010

[eluser]Unknown[/eluser]
right.. i should have looked into the user guide first, thank you!