Can’t access image directory
Posted: 22 May 2008 09:00 AM   [ Ignore ]  
Lab Assistant
Avatar
RankRank
Total Posts:  102
Joined  08-14-2007

Hi there,

My image directory is being parsed by EE so I don’t see any images on my site and I can’t understand why!

My Setup
- I’m using Engine Hosting
- I’m using the Multiple Site Manager
- The problem is with my second site, which is a subdomain and is using a sub-directory within the main site’s structure
- EE pages are being displayed on the subdomain, but EE seems to be parsing all directories
- I’m using the ‘exclude’ method to remove index.php from my urls. This is working perfectly well on other servers with MSM and on the main site.

Here’s my code for the .htaccess file that’s in my sub-domain’s main directory:

RewriteEngine on
RewriteCond
$1 !^(ee|css|img|js|favicon\.ico|robots\.txt|index\.php) [NC]
RewriteRule
^(.*)$ /index.php/$1 [L]

Can anyone spot anything?

I’ve checked with the Knowledgebase on Engine Hosting, but guess what? The “How do I get support in the use of ExpressionEngine Core/Full?” is blank! Not very encouraging.

Cheers


Jim

 Signature 

Jim Pannell | Six Media Web Development | Copenhagen, Denmark

Profile
 
 
Posted: 22 May 2008 09:59 AM   [ Ignore ]   [ # 1 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  23522
Joined  05-20-2002

I don’t think I entirely get what’s happening.  Can you link to it in action?  And you might want to remove the htaccess rewriting for testing purposes.  If it works with that gone and the index.php added back, we’ll know that’s part of the problem.

 Signature 

AKA rob1

Help Request TipsPro Network

Profile
 
 
Posted: 22 May 2008 10:20 AM   [ Ignore ]   [ # 2 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  102
Joined  08-14-2007

Hi Robin

Thanks for replying to my post. I’ve now removed the htaccess and I still can’t see any other directories.

For your information, I have an htaccess in my main directory as well, the contents of which are:

RewriteEngine on
RewriteCond
$1 !^(dev|betaling|betingelser|images|js|wishmo-engine|themes|favicon\.ico|robots\.txt|index\.php|index\.html|layout\.html) [NC]
RewriteRule
^(.*)$ /index.php/$1 [L]

# Setup sub-domain
RewriteBase /
RewriteCond %{HTTP_HOST} ^dev.mydomain.com [NC]
RewriteCond
%{REQUEST_FILENAME} !dev/
RewriteRule ^(.*)$ dev/$1 [L]

The bottom part is required by Engine Hosting for setting up a subdomain.
The directory name for my subdomain is ‘dev’. If I remove ‘dev’ from the main htaccess file I get an Error 500 on the subdomain.

I’ll PM you with a link.

Cheers

Jim

 Signature 

Jim Pannell | Six Media Web Development | Copenhagen, Denmark

Profile
 
 
Posted: 22 May 2008 11:07 AM   [ Ignore ]   [ # 3 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  23522
Joined  05-20-2002

Hm- I can’t get to the subdomain at all- want’s authorization- returns HTTP/1.0 401 Unauthorized w/out it.  So- it’s locked down somehow.  But I don’t see it in the htaccess.  Huh.  I suppose you could have it required to access the template(s)?  In access restrictions?  Otherwise, got to be something going on server side.

 Signature 

AKA rob1

Help Request TipsPro Network

Profile
 
 
Posted: 23 May 2008 01:10 AM   [ Ignore ]   [ # 4 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  102
Joined  08-14-2007

Sorry - I’d forgotten that the template was locked down. It’s now accessible.

 Signature 

Jim Pannell | Six Media Web Development | Copenhagen, Denmark

Profile
 
 
Posted: 23 May 2008 01:50 AM   [ Ignore ]   [ # 5 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  102
Joined  08-14-2007

I’ve fixed it. It turns out that it was because I was using the ‘exclude’ method to remove index.php from the urls. Using the ‘include’ method instead solved the problem.

The Engine Hosting documentation states the following about this:

Anything I should know about removing index.php from my URLs on EngineHosting’s servers?

Removing index.php completely from ExpressionEngine’s URL structure is a community supported feature rather than an official feature.  With that in mind there is a notice added by hosting staff addressing the use of the “Exclude Method” only, which you can find full information here:  Remove index.php from URLs

The problem is that in the EE docs it doesn’t say anything about Engine Hosting at all! It’d be great if the folks at Engine Hosting could work a little on their documentation. Earlier this week I had to tell them that their “How do I get support in the use of ExpressionEngine Core/Full?” page was blank! It has since been populated.

 Signature 

Jim Pannell | Six Media Web Development | Copenhagen, Denmark

Profile
 
 
   
 
 
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 09:33 AM
Total Registered Members: 64909 Total Logged-in Users: 36
Total Topics: 81855 Total Anonymous Users: 23
Total Replies: 440072 Total Guests: 206
Total Posts: 521927    
Members ( View Memberlist )