We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

LG .htaccess Generator

Development and Programming

timkelty's avatar
timkelty
177 posts
16 years ago
timkelty's avatar timkelty

Workin’ great now, love it love it love it

       
Leevi Graham's avatar
Leevi Graham
1,143 posts
16 years ago
Leevi Graham's avatar Leevi Graham

Yay, sorry of the mix up

       
timkelty's avatar
timkelty
177 posts
16 years ago
timkelty's avatar timkelty

When I test this locally, it works great, using the htaccess just as its included in the extension.

However, when I deploy to my development server I have a couple issues. If I leave in the “Remove IE image toolbar” lines, I immediately get a server error. Commenting them out fixes it.

Also, my system directory isn’t available. mysite.com/systemfolder just goes to the homepage. Again, testing the same thing locally (MAMP) works fine.

I tried a variety of changes but could not get the include method to work on the server. As soon as I switched to the exclude method as I was doing before, my system dir is available again.

Any ideas?

       
Leevi Graham's avatar
Leevi Graham
1,143 posts
16 years ago
Leevi Graham's avatar Leevi Graham

I just uploaded a tweak to the extension. The extension will only regenerate the .htaccess if the entry is a page or the template group has been modified which means you won’t see the success notification all the time.

Cheers

       
Leevi Graham's avatar
Leevi Graham
1,143 posts
16 years ago
Leevi Graham's avatar Leevi Graham
When I test this locally, it works great, using the htaccess just as its included in the extension. However, when I deploy to my development server I have a couple issues. If I leave in the “Remove IE image toolbar” lines, I immediately get a server error. Commenting them out fixes it. Also, my system directory isn’t available. mysite.com/systemfolder just goes to the homepage. Again, testing the same thing locally (MAMP) works fine. I tried a variety of changes but could not get the include method to work on the server. As soon as I switched to the exclude method as I was doing before, my system dir is available again. Any ideas?

Is your system folder one of the include groups or are you using a masked cp?

       
Pigtail Dencil's avatar
Pigtail Dencil
117 posts
16 years ago
Pigtail Dencil's avatar Pigtail Dencil

Totally brilliant Leevi – again 😉

I was wondering… What about the possibility of generating a list of “Redirect permanent” addresses. I’ve bumped into this need in the following case scenario.

After launch of an ee-site, we realise that for one reason or another we should have named our template groups, url category marker or some categories differently. In the meantime, the pages under those template group names, url category marker or categories have already been indexed or linked by other sites. We don’t want to loose visitor traffic, so we write a list of redirects.

So, how about figuring an optional and dynamic way for .htaccess Generator to add Redirect rules in the above situation?

       
Leevi Graham's avatar
Leevi Graham
1,143 posts
16 years ago
Leevi Graham's avatar Leevi Graham

Hey Seb,

Thanks for the suggestion.

I don’t think this is a core need for the EE community so I won’t be including it. Incorrect indexed urls can be a problem but a simple rule should cover them pretty easily.

I am working on a site now that was a combination of 2x wordpress sites and punbb. Using a couple of rules I have been able to redirect all of the pages.

Cheers

       
Leevi Graham's avatar
Leevi Graham
1,143 posts
16 years ago
Leevi Graham's avatar Leevi Graham

Just a quick note to say I have updated 1.0.0 with a new build… Go grab it 😊

       
NKT com's avatar
NKT com
124 posts
16 years ago
NKT com's avatar NKT com

Hi Leevi,

I get some strange encoding error in the htaccess file once it’s updated. It leaves the stuff that was in there to start with and then put this in place of the code it’s meant to add.

Sample…



       
Leevi Graham's avatar
Leevi Graham
1,143 posts
16 years ago
Leevi Graham's avatar Leevi Graham

Hey Turkish,



Is that the actual output? If not can you paste it in? Also where you saving a page, template or extension settings when the error occurred?

Cheers

       
Jason McCallister's avatar
Jason McCallister
255 posts
16 years ago
Jason McCallister's avatar Jason McCallister

that is too frickin sweet! A whole bunch of apples… What would make this better is if it was on a windows platform…

       
Leevi Graham's avatar
Leevi Graham
1,143 posts
16 years ago
Leevi Graham's avatar Leevi Graham

I was going to say the same thing but didn’t want to sound like a fanboy…

Typed on my 24” iMac while preparing my conference presentation on my G4 powerbook. Trying to decide weter I will control the presentation with my 1st gen jailbroken iphone or my 2nd gen 3g…

       
Jason McCallister's avatar
Jason McCallister
255 posts
16 years ago
Jason McCallister's avatar Jason McCallister

Thats OK… it doesnt hurt my feelings to be called that… LOL.

       
Leevi Graham's avatar
Leevi Graham
1,143 posts
16 years ago
Leevi Graham's avatar Leevi Graham

For those of you who are interested I have gone into a bit more detail about the default LG .htaccess Generator settings over at my post titled: “LG .htaccess Generator - Removing index.php from your ExpressionEngine site” !

       
NKT com's avatar
NKT com
124 posts
16 years ago
NKT com's avatar NKT com

Hi Leevi,

the corrupt data was just a one off. Seems fine now.

However on another site on a different host the index page loads without CSS. All other pages load fine but not the index page. Nother rules in the HTACESS file other than what this thing puts in.

http://www.mysite.org/ < No styling

I’m using using EE stylesheet tags.

       
1 2 3 4 Last

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.