Welcome Guest, Not a member yet? Register   Sign In
On .htaccess & Playing Nice With EE pre-2.0
#1

[eluser]jpcody[/eluser]
Hey guys, I need to figure out a solution to last me the next 12 days.

I've got my home page at http://joshuacody.net/index.php built on CodeIgniter.

I've got the rest of my site built on ExpressionEngine.

To make this work, I have renamed my EE index.php file to index2.php.

Then, I have an .htaccess file (generated using LG .htaccess generator) file that is removing index2.php.

But my CodeIgnited home page is demanding index.php appended to the URL. If I removed the .htaccess file altogether, it no longer demands index.php.

Any ideas on how I can fix this? My current .htaccess:

Code:
RewriteEngine On

RewriteBase /

# remove the www
RewriteCond %{HTTP_HOST} ^(www\.$) [NC]
RewriteRule ^ http://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

# Remove index.php
# Uses the "include method"
# http://expressionengine.com/wiki/Remove_index.php_From_URLs/#Include_List_Method
RewriteCond %{REQUEST_URI} !(\.[a-zA-Z0-9]{1,5})$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_URI} ^/(site|search|rss|include|commentary||members|P[0-9]{2,8}) [NC]
RewriteRule ^(.*)$ /index2.php?/$1 [L]

Thanks so much for any suggestions you could give on this!


Messages In This Thread
On .htaccess & Playing Nice With EE pre-2.0 - by El Forum - 11-19-2009, 02:43 AM
On .htaccess & Playing Nice With EE pre-2.0 - by El Forum - 11-19-2009, 03:27 AM
On .htaccess & Playing Nice With EE pre-2.0 - by El Forum - 11-19-2009, 01:53 PM
On .htaccess & Playing Nice With EE pre-2.0 - by El Forum - 11-22-2009, 12:31 AM



Theme © iAndrew 2016 - Forum software by © MyBB