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

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 

Newism - Newcastle Web Design & Development


NSM Publish Plus - Collaborative workflow and live entry previews
LG Better Meta - SEO Meta & XML Sitemap Generator
LG Polls
LG .htaccess Generator
20+ EE addons

Profile
 
 
Posted: 09 September 2008 01:21 AM   [ Ignore ]   [ # 20 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  126
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 02:02 AM   [ Ignore ]   [ # 21 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1306
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 

Newism - Newcastle Web Design & Development


NSM Publish Plus - Collaborative workflow and live entry previews
LG Better Meta - SEO Meta & XML Sitemap Generator
LG Polls
LG .htaccess Generator
20+ EE addons

Profile
 
 
Posted: 09 September 2008 09:23 PM   [ Ignore ]   [ # 22 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1306
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 

Newism - Newcastle Web Design & Development


NSM Publish Plus - Collaborative workflow and live entry previews
LG Better Meta - SEO Meta & XML Sitemap Generator
LG Polls
LG .htaccess Generator
20+ EE addons

Profile
 
 
Posted: 10 September 2008 12:56 AM   [ Ignore ]   [ # 23 ]  
Lab Assistant
RankRank
Total Posts:  174
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 01:42 AM   [ Ignore ]   [ # 24 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1306
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 

Newism - Newcastle Web Design & Development


NSM Publish Plus - Collaborative workflow and live entry previews
LG Better Meta - SEO Meta & XML Sitemap Generator
LG Polls
LG .htaccess Generator
20+ EE addons

Profile
 
 
Posted: 10 September 2008 01:44 AM   [ Ignore ]   [ # 25 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  358
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 02:45 AM   [ Ignore ]   [ # 26 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1306
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 

Newism - Newcastle Web Design & Development


NSM Publish Plus - Collaborative workflow and live entry previews
LG Better Meta - SEO Meta & XML Sitemap Generator
LG Polls
LG .htaccess Generator
20+ EE addons

Profile
 
 
Posted: 10 September 2008 09:11 PM   [ Ignore ]   [ # 27 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  358
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 01:12 AM   [ Ignore ]   [ # 28 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1306
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 

Newism - Newcastle Web Design & Development


NSM Publish Plus - Collaborative workflow and live entry previews
LG Better Meta - SEO Meta & XML Sitemap Generator
LG Polls
LG .htaccess Generator
20+ EE addons

Profile
 
 
Posted: 11 September 2008 02:52 AM   [ Ignore ]   [ # 29 ]  
Lab Assistant
RankRank
Total Posts:  174
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 02:43 AM   [ Ignore ]   [ # 30 ]  
Lab Assistant
RankRank
Total Posts:  174
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.

Notice: Undefined index: group_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:8254) in /home/username/public_html/admin/extensions/ext.lg_htaccess_generator_ext.php on line 672
Profile
 
 
Posted: 12 September 2008 11:39 AM   [ Ignore ]   [ # 31 ]  
Summer Student
Total Posts:  16
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 03:40 AM   [ Ignore ]   [ # 32 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1306
Joined  01-24-2006
saidss - 12 September 2008 11:39 AM

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 

Newism - Newcastle Web Design & Development


NSM Publish Plus - Collaborative workflow and live entry previews
LG Better Meta - SEO Meta & XML Sitemap Generator
LG Polls
LG .htaccess Generator
20+ EE addons

Profile
 
 
Posted: 14 September 2008 03:42 AM   [ Ignore ]   [ # 33 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1306
Joined  01-24-2006
Turkish Baker - 11 September 2008 02:52 AM

Hi Leevi,

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

Excellent

Turkish Baker - 11 September 2008 02: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 

Newism - Newcastle Web Design & Development


NSM Publish Plus - Collaborative workflow and live entry previews
LG Better Meta - SEO Meta & XML Sitemap Generator
LG Polls
LG .htaccess Generator
20+ EE addons

Profile
 
 
Posted: 14 September 2008 07:42 AM   [ Ignore ]   [ # 34 ]  
Summer Student
Total Posts:  16
Joined  02-01-2007

Hi Leevi,

Thanks for that tip, works fine now

Regards
Said

Profile
 
 
Posted: 14 September 2008 11:15 AM   [ Ignore ]   [ # 35 ]  
Lab Assistant
RankRank
Total Posts:  174
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 07:47 PM   [ Ignore ]   [ # 36 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1306
Joined  01-24-2006

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

 Signature 

Newism - Newcastle Web Design & Development


NSM Publish Plus - Collaborative workflow and live entry previews
LG Better Meta - SEO Meta & XML Sitemap Generator
LG Polls
LG .htaccess Generator
20+ EE addons

Profile
 
 
   
2 of 10
2
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 1743, on December 02, 2009 03:47 PM
Total Registered Members: 120538 Total Logged-in Users: 66
Total Topics: 126598 Total Anonymous Users: 39
Total Replies: 665559 Total Guests: 373
Total Posts: 792157    
Members ( View Memberlist )
Newest Members:  kreessweeper240andrew nsuntroprachel123Rach123Glenn StavaImfaelSMS!persanul