1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

.htacess Images won't appear on my site

Discussion in 'Site & Server Administration' started by jasonleexxx, Dec 15, 2008.

  1. #1
    www.newportlegal.org and www.pickupartists.tv. Thanks in advance for any input, here is my htacess:


    × close edit hex TEXT viewer: /pickupartists.tv/.htaccess

    1 ############################################
    2 ## uncomment these lines for CGI mode
    3 ## make sure to specify the correct cgi php binary file name
    4 ## it might be /cgi-bin/php-cgi
    5
    6 # Action php5-cgi /cgi-bin/php5-cgi
    7 # AddHandler php5-cgi .php
    8
    9 ############################################
    10 ## GoDaddy specific options
    11
    12 # Options -MultiViews
    13
    14 ## you might also need to add this line to php.ini
    15 ## cgi.fix_pathinfo = 1
    16 ## if it still doesn't work, rename php.ini to php5.ini
    17
    18 ############################################
    19 ## this line is specific for 1and1 hosting
    20
    21 #AddType x-mapp-php5 .php
    22 #AddHandler x-mapp-php5 .php
    23
    24 ############################################
    25 ## default index file
    26
    27 DirectoryIndex index.php
    28
    29 <IfModule mod_php5.c>
    30
    31 ############################################
    32 ## adjust memory limit
    33
    34 # php_value memory_limit 64M
    35 php_value memory_limit 128M
    36 php_value max_execution_time 18000
    37
    38 ############################################
    39 ## disable magic quotes for php request vars
    40
    41 php_flag magic_quotes_gpc off
    42
    43 ############################################
    44 ## disable automatic session start
    45 ## before autoload was initialized
    46
    47 php_flag session.auto_start off
    48
    49 ############################################
    50 ## enable resulting html compression
    51
    52 #php_flag zlib.output_compression on
    53
    54 ###########################################
    55 # disable user agent verification to not break multiple image upload
    56
    57 php_flag suhosin.session.cryptua off
    58
    59 ###########################################
    60 # turn off compatibility with PHP4 when dealing with objects
    61
    62 php_flag zend.ze1_compatibility_mode Off
    63
    64 </IfModule>
    65
    66 <IfModule mod_security.c>
    67 ###########################################
    68 # disable POST processing to not break multiple image upload
    69
    70 SecFilterEngine Off
    71 SecFilterScanPOST Off
    72 </IfModule>
    73
    74 <IfModule mod_deflate.c>
    75
    76 ############################################
    77 ## enable apache served files compression
    78 ## http://developer.yahoo.com/performance/rules.html#gzip
    79
    80 # Insert filter
    81 #SetOutputFilter DEFLATE
    82
    83 # Netscape 4.x has some problems...
    84 #BrowserMatch ^Mozilla/4 gzip-only-text/html
    85
    86 # Netscape 4.06-4.08 have some more problems
    87 #BrowserMatch ^Mozilla/4\.0[678] no-gzip
    88
    89 # MSIE masquerades as Netscape, but it is fine
    90 #BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
    91 # Don't compress images
    92 #SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png)$ no-gzip dont-vary
    93
    94 # Make sure proxies don't deliver the wrong content
    95 #Header append Vary User-Agent env=!dont-vary
    96
    97 </IfModule>
    98
    99 <IfModule mod_ssl.c>
    100
    101 ############################################
    102 ## make HTTPS env vars available for CGI mode
    103
    104 SSLOptions StdEnvVars
    105
    106 </IfModule>
    107
    108 <IfModule mod_rewrite.c>
    109
    110 ############################################
    111 ## enable rewrites
    112
    113 Options FollowSymLinks
    114 RewriteEngine on
    115
    116 ############################################
    117 ## you can put here your magento root folder
    118 ## path relative to web root
    119
    120 #RewriteBase /
    121
    122 ############################################
    123 ## workaround for HTTP authorization
    124 ## in CGI environment
    125
    126 RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
    127
    128 ############################################
    129 ## always send 404 on missing files in these folders
    130
    131 RewriteCond %{REQUEST_URI} !^/(media|skin|js)/
    132
    133 ############################################
    134 ## never rewrite for existing files, directories and links
    135
    136 RewriteCond %{REQUEST_FILENAME} !-f
    137 RewriteCond %{REQUEST_FILENAME} !-d
    138 RewriteCond %{REQUEST_FILENAME} !-l
    139
    140 ############################################
    141 ## rewrite everything else to index.php
    142
    143 RewriteRule .* index.php [L]
    144
    145 </IfModule>
    146
    147
    148 ############################################
    149 ## Prevent character encoding issues from server overrides
    150 ## If you still have problems, use the second line instead
    151
    152 AddDefaultCharset Off
    153 #AddDefaultCharset UTF-8
    154
    155 <IfModule mod_expires.c>
    156
    157 ############################################
    158 ## Add default Expires header
    159 ## http://developer.yahoo.com/performance/rules.html#expires
    160
    161 ExpiresDefault "access plus 1 year"
    162
    163 </IfModule>
    164
    165 ############################################
    166 ## By default allow all access
    167
    168 Order allow,deny
    169 Allow from all
    170
    171 ############################################
    172 ## If running in cluster environment, uncomment this
    173 ## http://developer.yahoo.com/performance/rules.html#etags
    174
    175 #FileETag none
    176
    177
     
    jasonleexxx, Dec 15, 2008 IP
  2. diligenthost

    diligenthost Peon

    Messages:
    685
    Likes Received:
    30
    Best Answers:
    0
    Trophy Points:
    0
    #2
    This might not be it, but I've noticed alot of your images have %20, which means a space. Try removing spaces in your filenames, or put underscores, fix the HTML to point to the new filenames, and it should be alright. If thats not it, check the permissions of the images folder/files, making sure they have read access.
     
    diligenthost, Dec 15, 2008 IP
  3. Lexiseek

    Lexiseek Banned

    Messages:
    2,499
    Likes Received:
    115
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Try adding this:

    
    RewriteCond %{REQUEST_URI} !\.(gif|jpe?g|css|)$ [NC]
    
    Code (markup):
     
    Lexiseek, Dec 16, 2008 IP
    Rebecca likes this.