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:  1373
Joined  2006-03-26

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 DesignMember, EE Pro Network
Peruse my EE Plugins & Extensions

Profile
 
 
Posted: 11 May 2008 10:22 PM   [ Ignore ]   [ # 20 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  664
Joined  2006-01-24
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 

leevigraham.com

VIEW ALL MY EE ADDONS

LG Polls - Now Available
LG Better Meta 1.5
LG TinyMCE 1.2.1

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

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 DesignMember, EE Pro Network
Peruse my EE Plugins & Extensions

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: 58259 Total Logged-in Users: 27
Total Topics: 68363 Total Anonymous Users: 25
Total Replies: 368156 Total Guests: 457
Total Posts: 436519    
Members ( View Memberlist )