There is no update planned as yet. This extension is essentially free which means all client work is deemed more important. If I get a second I’ll look at the update, alternatively the project is on GitHub which means there is an opportunity for anyone to make the changes and send me a pull request.
After the following code:
# 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 $1 ^({ee:template_groups}|{ee:pages}members|P[0-9]{2,8}) [NC]
RewriteRule ^(.*)$ /index.php/$1 [L]
I have added the following line: Redirect 301 http://www.mydomain/newsroom/newsroom.asp http://www.mydomain/newsroom
Because we have moved away from asp and onto expression engine I need to set up the redirects. Is there a special way I need to add these redirects? Any help appreciated.
Thank you
Love this extension,
I’m struggling with a particular redirect issue and was wondering if someone on this thread can help. I’m using two systems, EE and Magento, I want all the EE pages to be “unsecure” except for a few directories.
Here’s what I’ve come up with so far, but I can’t seem to get it working:
# remove the ssl
RewriteCond %{HTTPS} on
RewriteCond %{REQUEST_URI} !^/ajax(/.*)?$ [NC]
RewriteRule ^ http://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
Basically I’m trying to redirect all the https request to http EXCEPT for the ajax directory. Any one got any clues as to what I’m missing.
Thanks!
Is there anything special to do to get this working when EE is in a sub directory? do I set the htaccess path to the root of my server, or to the sub directory?You should be able to set the path to the .htaccess in the extension settings.
How to use LG .htaccess Generator when EE is installed in a subdirectory rather than the Web root.
I can’t guarantee that this will work for everyone, but it’s working in a client’s account on hosting.com (their choice not mine). Make 2 changes in the stock rewrite rules that come with the extension:
1) Add YOUR subdirectory’s name to RewriteBase:
RewriteBase /subdirectory/
2) In the last line of the section that begins “# Remove index.php”, delete the forward slash BEFORE “index.php” so that it looks like this:
RewriteRule ^(.*)$ index.php?/$1 [L]
In addition to these things, you do of course have to give LG .htaccess Generator the proper path to your .htaccess file (in the Extension’s settings) and, as always, you need to go into EE’s Admin > System Preferences > General Configuration and remove “index.php” from the field labeled “Name of your site’s index page” – in other words, empty that field.
UPDATE I spoke a bit too soon here. I was testing this by manually typing URLs into the browser that did not contain “index.php” and all was well. However, I still had “index.php” in Admin > System Preferences > General Configuration. When I removed it, my pages no longer found the CSS files that I’m maintaining inside EE as templates. Various people have posted .htaccess fixes for this, but none are working for me. I suspect that I may end up moving my CSS files into server directories and linking to them directly, as you pretty much have to do with Javascript in EE anyway. But for now, you should expect this CSS problem if you try what I recommended above.
Anybody else with a solution for CSS maintained as EE templates?
Hi I already solved rewriting on windows, but on Apache i can’t :(
I also had trouble with double “|” so i removed it manually and it works. Everything else is as it script generate.
But when i try to open link without index.php I’m always presented with Home page?!
In error log I’m getting error like:
File does not exist: /home/domain/public_html/ask/
Well if there is no file/directory why I’m not redirected to 404? Also, should there be “!-d”, because it checks only for files, not directory?!
Please and thanks
I’m surprised more people aren’t using both Structure and this. Actually I’m surprised you aren’t!
I also use structure for most of my projects.
Levi, I think people would be willing to pay for this, although maybe not a lot - but if it would make it worth your time to make it work - I say charge for it. You’re time is valuable and I sure as heck have no idea how to make this work.
Just saying
😉
Also - I just thought of this - could it be I’m having problems because of MAMP?
I have localhost:8888/ee-starter/ as my root url. I’ve got the urls to work correctly, but when clicking the links to those urls - it just shows a 404 error page.
Has anyone else gotten it to work in mamp?
I installed the htaccess Generator in combination with the Pages Module. It seems to work fine, accept the following.
When I link to a page in my website or type an existing URL (for instance www.schatkaart-geboortekaartjes.nl/aanbieding) an extra “/” is put between .nl en aanbieding (www.schatkaart-geboortekaartjes.nl//aanbieding).
When I disable the htaccess Generator this problem doesn’t exist anymore.
What can I do to solve this?
Thank you for your reaction,
Mirjam
I’m having an issue with .htaccess Generator and the GeoFinder module. Everything works fine, until the user does a search in GeoFinder with a comma. (i.e. Toronto, ON) I get the “Disallowed Key Characters” error on a white screen. I tried removing the “?” after index.php like so:
RewriteRule ^(.*)$ /index.php/$1 [L]
This seems to solve the GeoFinder “Disallowed Key Characters” problem, but now LG htaccess generator is not doing what it’s supposed to. Or more specifically, the ‘Include Method’ is not working right. Any page I try to access, just takes me back to the homepage. I have even tried adding:
AcceptPathInfo On
before the rewrite rules in my .htacess file with no success.
If anyone could please help me out with this, it would be much appreciated!
Thanks in advance, Adam
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.