500 Internal Server error with Generate .htaccess extension
Posted: 17 December 2008 01:52 PM   [ Ignore ]  
Lab Assistant
Avatar
RankRank
Total Posts:  235
Joined  03-07-2006

Hi all, I am using the Generate .htaccess extension and I keep getting a 500 Internal Server error when I try and use it on Site5 servers.

I developed the site locally and it worked fine.

The Site5 support team sent me this as the exact error in the error log..

[Wed Dec 17 11:09:26 2008] [alert] [client 93.86.146.123] /home/myragonz/public_html/.htaccessRewriteCondcannot compile regular expression '^/(includes|about|talent|aboutmyra|artists|contact|fashion4film|home||members|P[0-9]{2,8})'\n 

Can anyone see why this is happening? I really don’t understand!

Thanks

Mike

 Signature 

www.mikeebee.com

Profile
 
 
Posted: 17 December 2008 05:14 PM   [ Ignore ]   [ # 1 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1336
Joined  01-24-2006

You have a double pipe || in your generated file which is causing the issue. If you’re not using E pages remove the {ee:pages} variable.

 Signature 

EE-Garage.com - All my ExpressionEngine 2 Addons!


EE2 - NSM Better Meta - SEO Meta & XML Sitemap Generator
EE2 - NSM Live Look - Real entry previews


Newism - Newcastle - ExpressionEngine Experts

Profile
 
 
Posted: 01 April 2009 10:33 AM   [ Ignore ]   [ # 2 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  107
Joined  07-03-2008

Hi, I am having a similar issue with the 500 Error. I have checked through and can’t find a double-pipe anywhere, and have removed pages from the settings. Any ideas? This is a completely fresh install so only the ‘site/index.php’ template exists so far. 

Thanks,

Cormac

# -- LG .htaccess Generator Start --

# .htaccess generated by LG .htaccess Generator v1.0.0
# http://leevigraham.com/cms-customisation/expressionengine/addon/lg-htaccess-generator/

# secure .htaccess file
<Files .htaccess>
 
order allow,deny
 deny from all
</Files>

# Dont list files in index pages
IndexIgnore *

# EE 404 page for missing pages
ErrorDocument 404 /index.php?/

# Simple 404 for missing files
<FilesMatch "(\.jpe?g|gif|png|bmp)$">
  
ErrorDocument 404 "File Not Found"
</FilesMatch>

RewriteEngine On

RewriteBase 
/

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

# Add a trailing slash to paths without an extension
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond 
%{REQUEST_URI} !(\.[a-zA-Z0-9]{1,5}|/)$
RewriteRule ^(.*)$ $1[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|members|P[0-9]{2,8}[NC]
RewriteRule 
^(.*)$ /index.php?/$1 [L]

# Remove IE image toolbar
<FilesMatch "\.(html|htm|php)$">
  
Header set imagetoolbar "no"
</FilesMatch>

# -- LG .htaccess Generator End -- 
Profile