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:  1402
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 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:  736
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 

leevigraham.com

VIEW ALL MY EE ADDONS!!

LG Polls - Now Available
LG Better Meta 1.6
LG TinyMCE 1.3

Profile
 
 
Posted: 11 May 2008 10:35 PM   [ Ignore ]   [ # 21 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1402
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 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: 59683 Total Logged-in Users: 34
Total Topics: 71223 Total Anonymous Users: 20
Total Replies: 383837 Total Guests: 407
Total Posts: 455060    
Members ( View Memberlist )