images not shown..

Status
Not open for further replies.

saurjk

New Member
Messages
23
Reaction score
0
Points
0
is something going wrong with x10hosting free acounts ?? or are the just not looking into it becaus its free??

the images in my site http://www.saurabrajkarnikar.com.np are not being shown even though the path to the images are correct, when i copy the image path and paste it in the address bar. the image loads.. what is wrong with the hosting??
 

saurjk

New Member
Messages
23
Reaction score
0
Points
0
let me correct... not all the images are not shown.. only the images that are present in my site folder are not being shown, the images that have been hotlinked from other sites as scribd, flickr, etc are being shown....
 

calistoy

Free Support Volunteer
Community Support
Messages
5,602
Reaction score
87
Points
48
I have to admit, I haven't come across this before. Just to add to the analysis of your situation: You don't have an index page in your main domain. As a result, I can browse your site directory. When I click on the folder for the site you posted the url for, all of your images show up properly. Otherwise, just clicking your link shows the lack of images as you said.

Could this be a problem with .htaccess? Your previous thread addressed the possibility of making changes to it.
 
Last edited:

saurjk

New Member
Messages
23
Reaction score
0
Points
0
i dunno.. i did not actually change the .htaccess file.. i jus uploaded my old .htaccess file... can that be the problem as well??? :S
 

calistoy

Free Support Volunteer
Community Support
Messages
5,602
Reaction score
87
Points
48
Probably. Maybe post the contents of your .htaccess file? Hopefully someone can help figure out what went wrong if it's indeed the problem.
 

saurjk

New Member
Messages
23
Reaction score
0
Points
0
this is the .htaccess file that is present in my directory

RewriteEngine on
#
# Apache/PHP/Drupal settings:
#

# Protect files and directories from prying eyes.
<FilesMatch "\.(engine|inc|info|install|make|module|profile|test|po|sh|.*sql|theme|tpl(\.php)?|xtmpl|svn-base)$|^(code-style\.pl|Entries.*|Repository|Root|Tag|Template|all-wcprops|entries|format)$">
Order allow,deny
</FilesMatch>

# Don't show directory listings for URLs which map to a directory.
Options -Indexes

# Follow symbolic links in this directory.
Options +FollowSymLinks

# Make Drupal handle any 404 errors.
ErrorDocument 404 /index.php

# Force simple error message for requests for non-existent favicon.ico.
<Files favicon.ico>
# There is no end quote below, for compatibility with Apache 1.3.
ErrorDocument 404 "The requested file favicon.ico was not found.
</Files>

# Set the default handler.
DirectoryIndex index.php

# Override PHP settings. More in sites/default/settings.php
# but the following cannot be changed at runtime.

# PHP 4, Apache 1.
<IfModule mod_php4.c>
php_value magic_quotes_gpc 0
php_value register_globals 0
php_value session.auto_start 0
php_value mbstring.http_input pass
php_value mbstring.http_output pass
php_value mbstring.encoding_translation 0
</IfModule>

# PHP 4, Apache 2.
<IfModule sapi_apache2.c>
php_value magic_quotes_gpc 0
php_value register_globals 0
php_value session.auto_start 0
php_value mbstring.http_input pass
php_value mbstring.http_output pass
php_value mbstring.encoding_translation 0
</IfModule>

# PHP 5, Apache 1 and 2.
<IfModule mod_php5.c>
php_value magic_quotes_gpc 0
php_value register_globals 0
php_value session.auto_start 0
php_value mbstring.http_input pass
php_value mbstring.http_output pass
php_value mbstring.encoding_translation 0
</IfModule>

# Requires mod_expires to be enabled.
<IfModule mod_expires.c>
# Enable expirations.
ExpiresActive On

# Cache all files for 2 weeks after access (A).
ExpiresDefault A1209600

<FilesMatch \.php$>
# Do not allow PHP scripts to be cached unless they explicitly send cache
# headers themselves. Otherwise all scripts would have to overwrite the
# headers set by mod_expires if they want another caching behavior. This may
# fail if an error occurs early in the bootstrap process, and it may cause
# problems if a non-Drupal PHP file is installed in a subdirectory.
ExpiresActive Off
</FilesMatch>
</IfModule>

# Various rewrite rules.
<IfModule mod_rewrite.c>

# If your site can be accessed both with and without the 'www.' prefix, you
# can use one of the following settings to redirect users to your preferred
# URL, either WITH or WITHOUT the 'www.' prefix. Choose ONLY one option:
#
# To redirect all users to access the site WITH the 'www.' prefix,
# (http://example.com/... will be redirected to http://www.example.com/...)
# adapt and uncomment the following:
# RewriteCond %{HTTP_HOST} ^example\.com$ [NC]
# RewriteRule ^(.*)$ http://www.example.com/$1 [L,R=301]
#
# To redirect all users to access the site WITHOUT the 'www.' prefix,
# (http://www.example.com/... will be redirected to http://example.com/...)
# uncomment and adapt the following:
# RewriteCond %{HTTP_HOST} ^www\.example\.com$ [NC]
# RewriteRule ^(.*)$ http://example.com/$1 [L,R=301]

# Modify the RewriteBase if you are using Drupal in a subdirectory or in a
# VirtualDocumentRoot and the rewrite rules are not working properly.
# For example if your site is at http://example.com/drupal uncomment and
# modify the following line:
# RewriteBase /drupal
#
# If your site is running in a VirtualDocumentRoot at http://example.com/,
# uncomment the following line:
# RewriteBase /

# Rewrite URLs of the form 'x' to the form 'index.php?q=x'.
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !=/favicon.ico
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
</IfModule>

# $Id: .htaccess,v 1.90.2.5 2010/02/02 07:25:22 dries Exp $

RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://saurjk.x10hosting.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://saurjk.x10hosting.com$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.saurjk.x10hosting.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.saurjk.x10hosting.com$ [NC]
RewriteRule .*\.(jpg|jpeg|gif|png|bmp)$ - [F,NC]
 

calistoy

Free Support Volunteer
Community Support
Messages
5,602
Reaction score
87
Points
48
# Modify the RewriteBase if you are using Drupal in a subdirectory or in a
# VirtualDocumentRoot and the rewrite rules are not working properly.
# For example if your site is at http://example.com/drupal uncomment and
# modify the following line:
# RewriteBase /drupal
#
# If your site is running in a VirtualDocumentRoot at http://example.com/,
# uncomment the following line:
# RewriteBase /

I've read other threads who were having problems with Drupal. Uncomment RewriteBase/

Here's where I read it: http://x10hosting.com/forums/free-hosting/123499-internal-server-error-2.html
 
Last edited:

saurjk

New Member
Messages
23
Reaction score
0
Points
0
ok one problem is solved... the cleanURL works now.. however.. the images still do not open....
 

calistoy

Free Support Volunteer
Community Support
Messages
5,602
Reaction score
87
Points
48
Have you allowed your parked and addon domains to use your images in your hotlink protection settings?
 

saurjk

New Member
Messages
23
Reaction score
0
Points
0
thanks for reminding me about that.. i feel like an idiot :D..
i forgot that one detail when i enabled hotlink protection...
thanks again... that one small detail took my whole 2 hrs... woot....
 

calistoy

Free Support Volunteer
Community Support
Messages
5,602
Reaction score
87
Points
48
The credit goes to Corey, actually. I was stumped and he answered my question about this. I would have never thought about it otherwise. We all learn more as we go.
 
Last edited:
Status
Not open for further replies.
Top