htaccess Elite

.htaccess tutorial


All times are UTC [ DST ]





Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Rewrite & Expression Engine & AN Hosting
PostPosted: 03 Jan 2008 23:05 
Offline

Joined: 03 Jan 2008 22:50
Posts: 1
Before I moved to AN Hosting as my hosting provider I used (based on Expression Engine documentation) the following code in my .htaccess file to remove the "index.php" from the URL.

Code:
RewriteEngine on
RewriteCond $1 !^(galleries|images|eecore|themes|favicon\.ico|robots\.txt|index\.php) [NC]
RewriteRule ^(.*)$ /index.php/$1 [L]


This however does not work with my new provider, AN Hosting. I have pleaded with them to help, but they have done little. They have told me that their servers are configured to run as CGI process which is different than my previous provider. However, I'm not an Apache guru so I'm not sure what to do. More details of my issue: http://expressionengine.com/forums/viewthread/65546/.

I'll send beer money or whatever if someone helps me with this very frustrating problem! ;)


Top
 Profile  
 
 Post subject: Re: Rewrite & Expression Engine & AN Hosting
PostPosted: 17 Jan 2008 03:43 
Offline

Joined: 28 Feb 2007 17:16
Posts: 40
ebohling wrote:
remove the "index.php" from the URL.

Code:
RewriteEngine on
RewriteCond $1 !^(galleries|images|eecore|themes|favicon\.ico|robots\.txt|index\.php) [NC]
RewriteRule ^(.*)$ /index.php/$1 [L]


Code:
RewriteEngine On
RewriteBase /
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.php\ HTTP/ [NC]
RewriteRule ^.+$ http://site.com [R=301]


check that out.. it should work


Top
 Profile  
 
 Post subject: Re: Rewrite & Expression Engine & AN Hosting
PostPosted: 19 Sep 2008 01:39 
Offline

Joined: 19 Sep 2008 01:31
Posts: 1
I have written a post about LG .htaccess Generator over on my web development blog. It explains the default rules of the extension which your readers might find useful.

Bascially the ExpressionEngine extension uses the "include" method for removing the index.php and automatically adds the required template groups and pages.

On a related note, I also recently encountered an issue with query strings on the site index, specifically Campaign Monitors outgoing email links. I wrote a fairly detailed post about it titled Using URL rewrites to make ExpressionEngine, Campaign Monitor & Google Analytics play nice.

.htaccess is indeed a very tricky subject that causes lots and lots of headaches. Hopefully my posts will help you out. Oh and i drink Pilsner :p

Cheers Leevi


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: MSN [Bot], MSNbot Media and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB