2 of 11
2
LG .htaccess Generator
Posted: 09 September 2008 01:41 AM   [ Ignore ]   [ # 19 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1336
Joined  01-24-2006
timkelty - 09 September 2008 01:20 AM

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?

 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: 09 September 2008 02:21 AM   [ Ignore ]   [ # 20 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  144
Joined  03-08-2006

Totally brilliant Leevi – again wink

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?

 Signature 

Seb Neerman

Profile
 
 
Posted: 09 September 2008 03:02 AM   [ Ignore ]   [ # 21 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1336
Joined  01-24-2006

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

 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: 09 September 2008 10:23 PM   [ Ignore ]   [ # 22 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1336
Joined  01-24-2006

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

 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: 10 September 2008 01:56 AM   [ Ignore ]   [ # 23 ]  
Lab Assistant
RankRank
Total Posts:  198
Joined  06-06-2007

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…

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

Profile
 
 
Posted: 10 September 2008 02:42 AM   [ Ignore ]   [ # 24 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1336
Joined  01-24-2006

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

 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: 10 September 2008 02:44 AM   [ Ignore ]   [ # 25 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  368
Joined  05-05-2008

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

 Signature 

Invoked Projects | ExpressionEngine & Best Security Practices | Panic Coda EE Clips

ideas are sparked by ramblings of confused personage

Profile
 
 
Posted: 10 September 2008 03:45 AM   [ Ignore ]   [ # 26 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1336
Joined  01-24-2006

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…

 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: 10 September 2008 10:11 PM   [ Ignore ]   [ # 27 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  368
Joined  05-05-2008

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

 Signature 

Invoked Projects | ExpressionEngine & Best Security Practices | Panic Coda EE Clips

ideas are sparked by ramblings of confused personage

Profile
 
 
Posted: 11 September 2008 02:12 AM   [ Ignore ]   [ # 28 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1336
Joined  01-24-2006

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” !

 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: 11 September 2008 03:52 AM   [ Ignore ]   [ # 29 ]  
Lab Assistant
RankRank
Total Posts:  198
Joined  06-06-2007

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.

Profile
 
 
Posted: 12 September 2008 03:43 AM   [ Ignore ]   [ # 30 ]  
Lab Assistant
RankRank
Total Posts:  198
Joined  06-06-2007

Btw, I just I got this error message when hitting the back button in the control panel. I was editing custom field instructions at the time.

NoticeUndefined indexgroup_id in /home/username/public_html/admin/cp/cp.publish_ad.php on line 8254

Warning
session_start() [function.session-start]Cannot send session cache limiter headers already sent (output started at /home/username/public_html/admin/cp/cp.publish_ad.php:8254in /home/username/public_html/admin/extensions/ext.lg_htaccess_generator_ext.php on line 672 
Profile
 
 
Posted: 12 September 2008 12:39 PM   [ Ignore ]   [ # 31 ]  
Summer Student
Total Posts:  18
Joined  02-01-2007

Hi Leevi

I just installed the plugin and its working fine except for the forum. It redirects back to the main site, so basically does the extension also work for the forum as well and if it does, what must be done

Thanks & Regards
Said

Profile
 
 
Posted: 14 September 2008 04:40 AM   [ Ignore ]   [ # 32 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1336
Joined  01-24-2006
saidss - 12 September 2008 04:39 PM

Hi Leevi

I just installed the plugin and its working fine except for the forum. It redirects back to the main site, so basically does the extension also work for the forum as well and if it does, what must be done

Thanks & Regards
Said

I haven’t setup the extension with the forum before so I can’t comment for sure. But if your form is located at /forum/ why don’t you just add “forum” into the extension settings before {ee:templates}

 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: 14 September 2008 04:42 AM   [ Ignore ]   [ # 33 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1336
Joined  01-24-2006
Turkish Baker - 11 September 2008 07:52 AM

Hi Leevi,

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

Excellent

Turkish Baker - 11 September 2008 07:52 AM

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.

LG .htaccess generator just adds the template groups and pages to the .htaccess. You may need to tweak your settings for individual setups. What is the path to your CSS?

 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: 14 September 2008 08:42 AM   [ Ignore ]   [ # 34 ]  
Summer Student
Total Posts:  18
Joined  02-01-2007

Hi Leevi,

Thanks for that tip, works fine now

Regards
Said

Profile
 
 
Posted: 14 September 2008 12:15 PM   [ Ignore ]   [ # 35 ]  
Lab Assistant
RankRank
Total Posts:  198
Joined  06-06-2007

Hi Leevi,

the CSS template group is called “styles”. Here is the remove index.php code it made.

# 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|styles|feeds|includes|reports|press|news|what-you-can-do|protesting|chronicle|mobile|xml|search|sitemaps|tools|translation|tell-a-friend|video|coming-soon|language|groups||members|P[0-9]{2,8}[NC]
RewriteRule 
^(.*)$ /index.php?/$1 [L] 


Thanks for your help.

Profile
 
 
Posted: 14 September 2008 08:47 PM   [ Ignore ]   [ # 36 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1336
Joined  01-24-2006

What is the url to the CSS file as its rendered in your page source?

 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
 
 
   
2 of 11
2