2 of 2
2
MOSSO hosting and Expression Engine (path.php)
Posted: 11 May 2008 10:19 PM   [ Ignore ]   [ # 19 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1580
Joined  03-26-2006

Can one of you guys experienced with Mosso and EE tell me what I need to do to remove ‘index.php’ from the URL’s there? Looks like they have some sort of ‘cloud’ or whatever. I’ve already found that I have to specify the DOCUMENT-ROOT in the path.php file in order to get Imgsizer to work, like this:

$global_vars =
array(
$_SERVER['DOCUMENT_ROOT'] = '/mnt/Target01/123456/098765/www.oursite.com/web/content'
);


Because PHPInfo was showing the DOCUMENT_ROOT as being /var/www.

Now I’m reading that I may need to add ‘RewriteBase’ to my .htaccess file? I tried this and no dice:

RewriteEngine On
RewriteBase
/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond
%{REQUEST_FILENAME} !-d
RewriteRule
^(.*) /index.php/ [L]

Do I have to use either the include/exclude method? Thanks for any Mosso/EE insight.

 Signature 

ryan masuga
—————
Masuga Design | Member, EE Pro Network
My EE Add-Ons | {devot:ee}
Twitter: masuga | masugadesign | devot_ee

Profile
 
 
Posted: 11 May 2008 10:22 PM   [ Ignore ]   [ # 20 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1008
Joined  01-24-2006
mdesign - 11 May 2008 10:19 PM

Can one of you guys experienced with Mosso and EE tell me what I need to do to remove ‘index.php’ from the URL’s there? Looks like they have some sort of ‘cloud’ or whatever. I’ve already found that I have to specify the DOCUMENT-ROOT in the path.php file in order to get Imgsizer to work, like this:

$global_vars =
array(
$_SERVER['DOCUMENT_ROOT'] = '/mnt/Target01/123456/098765/www.oursite.com/web/content'
);


Because PHPInfo was showing the DOCUMENT_ROOT as being /var/www.

Now I’m reading that I may need to add ‘RewriteBase’ to my .htaccess file? I tried this and no dice:

RewriteEngine On
RewriteBase
/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond
%{REQUEST_FILENAME} !-d
RewriteRule
^(.*) /index.php/ [L]

Do I have to use either the include/exclude method? Thanks for any Mosso/EE insight.

My method lists all the template groups which works well.

<IfModule mod_rewrite.c>
  RewriteEngine On
  RewriteCond $1 ^(_cron|articles|multi-slacking|pages|polls|P[0-9]{2,8}) [NC]
  RewriteRule ^(.*)$ /index.php/$1 [L]
</IfModule>

 Signature 

Newism - Newcastle Web Design & Development
 
LG Better Meta now w/ Sitemap Meta & XML Generator | LG Polls | LG .htaccess Generator | LG TinyMCE | LG Twitter

More ExpressionEngine Extensions

Profile
 
 
Posted: 11 May 2008 10:35 PM   [ Ignore ]   [ # 21 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1580
Joined  03-26-2006

Got my .htaccess file working. I went back to the Wiki and realized that the last line of the rewritin’ I was using was all messed up. I had this:

RewriteEngine On
RewriteCond
%{REQUEST_FILENAME} !-f
RewriteCond
%{REQUEST_FILENAME} !-d
RewriteRule
^(.*) /index.php/ [L]

Which was not working, but changing the last line to the following worked:

RewriteEngine On
RewriteCond
%{REQUEST_FILENAME} !-f
RewriteCond
%{REQUEST_FILENAME} !-d
RewriteRule
^(.*)$ /index.php/$1 [L]


(Note dollar signs). I don’t know how my code got so messed up. WAIT…I do know. I have a snippet in Textmate and I just realized it’s removing the dollar signs because those are reserved…I need to escape them…arrrgh!

 Signature 

ryan masuga
—————
Masuga Design | Member, EE Pro Network
My EE Add-Ons | {devot:ee}
Twitter: masuga | masugadesign | devot_ee

Profile
 
 
   
2 of 2
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 1149, on July 16, 2007 10:33 AM
Total Registered Members: 62721 Total Logged-in Users: 47
Total Topics: 77336 Total Anonymous Users: 35
Total Replies: 417415 Total Guests: 265
Total Posts: 494751    
Members ( View Memberlist )
Newest Members:  jeffccaseyfamilyservicesAledVelindavearioRusspdtrigeminiRRecordbabunomada