Sorry, only just seen this thread.
Just posted this http://ellislab.com/forums/viewthread/98382/
Need to remove the question mark from the css url.
Thanks.
Thanks, but mine isn’t a coded URL. It’s generated by EE automatically in response to a signup (BTW the htaccess code you’ve posted in that thread is exactly the same code as I have above).
I don’t want to start tweaking EE system files, but I’m pretty sure it should be possible to match a URL where part of the URL = “?ACT” and create a new rule to remove the “?”.
If anyone knows how to do that I’d be grateful for the post.
Thanks in advance.
I don’t want to start tweaking EE system files, but I’m pretty sure it should be possible to match a URL where part of the URL = “?ACT” and create a new rule to remove the “?”.
Granted that I don’t have time to fully help you with this now, but you may want to start with adding code similar to:
RewriteCond %{QUERY_STRING} ^$
You should be able to add that as a condition on the rewrite rules that are messing up the mailing list signup, so the rule doesn’t process when the ?ACT exists.
I can’t make this extension to work, Internal Server Error appears. This is from the apache error log:
[Sat Dec 06 11:46:00 2008] [error] [client ::1] mod_rewrite: maximum number of internal redirects reached. Assuming configuration error. Use 'RewriteOptions MaxRedirects' to increase the limit if neccessary., referer: http://localhost/v3/index.php/our-services/
And this is generated .htaccess file:
# -- 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} ^/(404|home|our-company|success-stories|our-services|styles|includes||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 --
Any help how to solve this and make it work?
Is anyone else having this screw with your pagination?
It’s so random. From my main page I click on “page 2” in the pagination links and it just loads the homepage (i.e. 404’s to the homepage)…but it will successfully load the 3rd, 4th or beyond pages.
I’m new to this.
Any thoughts?
http://hautesheet.com
Thanks.
I too am being plagued with 500 internal server errors with the extension. I am sure that mod_rewrite is enabled. For the time being I have gone back to the generic version, which does work for me:
RewriteEngine On
RewriteCond $1 !\.(gif|jpe?g|png)$ [NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php/$1 [L]
Hi Guys,
OK I have read through this thread and external links and am still no better off.
Installed LG.htaccess plugin
Run the script successfully
Removed index.php on Name of your site’s index page: CP Home › Admin › System Preferences › General Configuration
Updated and removed the index.php from the weblogs in the: CP Home › Admin › Section Administration › Section Management › Edit Section Preferences
Others had 5 steps… not me! Am I missing something? Site no work without index.php
cheers Lance
I’ve been experiencing the same problem as cherryred and have solved it for now with a hack, but I’d much rather sort it out with the appropriate htaccess rule. Trouble is I’m not up-to-speed with regular expressions and RewriteCond!
slapshotw kindly suggested adding:
RewriteCond %{QUERY_STRING} ^$
I’ve tried this and whilst it removes index.php nicely from the query string URL sent with member activation emails, that doesn’t seem to help, because clicking on the link doesn’t activate the member! It seems that EE 1.6.6 requires the presence of index.php in the activation URL for it to function.
So I guess what’s needed is to exclude query strings from the rewrite. Anyone know how to modify Leevi’s code to do that, please?
Another issue (apologies if this has already been covered)…
LG .htaccess Generator comes with this segment:
# 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]
I get why this is there and I’d like to keep it in, but the trouble is it messes with any links to in-page IDs. For example:
http://example.com/templategroup/url_title/#idattribute
…gets rewritten to:
http://example.com/templategroup/url_title/#idattribute/
…which then doesn’t work as an in-page link!
Anyone figure how to modify the rewrite so that any URLs ending in #foo don’t get appended with a trailing slash?
wazungu, the LG extension keeps track of your:
Template Group names
The Profile Triggering Word you set in Site > Admin > Members and Groups > Membership Preferences
The Category URL Indicator you set in Site > Admin > Weblog Administration > Global Weblog Preferences
If you change any of these you must subsequently resubmit your .htaccess file from Site > Admin > Utilities > Extensions Manager > LG .htaccess Generator. In your case, had you set your Profile Triggering Word to Members after submitting your htaccess? I ask only because I made the same mistake!
Scratch the /#foo/ problem. I had a basic error in my {path} value that was causing the problem! :red:
I’ve just done a new install of EE tonight. 1.6.7 - Build: 20090122.
I installed LG .htaccess generator straight away but when I hit “submit and regenerate” I get:
Not Acceptable An appropriate representation of the requested resource /mysystemfoldername/index.php could not be found on this server. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request. Apache/1.3.41 Server at ihg.org.uk Port 80
Any idea what might be causing this. The site is running OK. Pure default install at the moment. The extension isn’t writing anything to my .htaccess file though.
I’ve never removed the index.php before but have a client who has asked for it specifically.
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.