Closed Thread
Results 1 to 4 of 4

Thread: .htaccess file may not be working?

  1. #1
    sleinous29 is offline x10Hosting Member sleinous29 is an unknown quantity at this point
    Join Date
    May 2011
    Posts
    5

    .htaccess file may not be working?

    Hi,

    I\'m trying to get my dynamic signature working (I know it works as ive tried it on a previous server).

    Currently I am getting the message: The image “http://sleinous.x10.mx/home/sleinous/public_html/foldingsleinous/foldingsig.png” cannot be displayed, because it contains errors.

    I alwaysused to get this issue when the .htaccess file wasnt working as otherwise the .png will not recognise the php code in it. The foldingsig.png is meant to obtain teh picture evga3.png and the status.xml files + some stats form another website\'s XML file every 3hrs hence the need for mySQL. However I am currently stuck at the first stage whereby I can not see the picture as the .htaccess file is not working. I have granted it execute privelages but it still wont load. I have made sure im pointing to teh correct url which as of right now is: http://sleinous.x10.mx/home/sleinous/public_html/foldingsleinous/foldingsig.png

    How can I get my .htaccess file to work?

    Thanks in advance,

    Jon

    ---------- Post added at 04:13 PM ---------- Previous post was at 04:01 PM ----------

    Ok I found that .png was blocked so ive unblocked that now and allowed direct linking (and my URL has now since changed, to view issue it is now http://sleinous.x10.mx/foldingsleinous/foldingsig.png

    Since getting rid of .png from block list it still doesnt work so my .htaccess is deffinatly blocked. Like I said before this whole setup was working perfectly on old server. I have .htaccess file in same /foldingsleinous/ folder as the rest of the stuff as thats how I had it on other server. Maybe it has to be in root or something?
    Last edited by sleinous29; 05-24-2011 at 12:06 PM.

  2. #2
    descalzo's Avatar
    descalzo is offline Grim Squeaker descalzo has a brilliant futuredescalzo has a brilliant futuredescalzo has a brilliant future
    Join Date
    Jul 2009
    Location
    Ankh-Morpork
    Posts
    7,635

    Re: .htaccess file may not be working?

    Post the contents of the .htaccess file if you want us to see what might be wrong for this server set up.

    You need RewriteBase / before any RewriteRule
    Nothing is always absolutely so.

  3. #3
    sleinous29 is offline x10Hosting Member sleinous29 is an unknown quantity at this point
    Join Date
    May 2011
    Posts
    5

    Re: .htaccess file may not be working?

    Quote Originally Posted by descalzo View Post
    Post the contents of the .htaccess file if you want us to see what might be wrong for this server set up.

    You need RewriteBase / before any RewriteRule

    Hi,

    The version (identical) on my home server does not require this RewriteBase thing before it.

    All I have in the .htaccess file is:

    Code:
    AddHandler application/x-httpd-php .png
    Is this RewriteBase something that x10hosting requires us to put infront?

    If so do I leave a space or anything, do I put RewriteBase on a seperate line or just before AddHandler?

    Like I said before, the setup was working 100% perfectly on home server so unless this RewriteBase is required by x10hosting there should be no reason why it wont work on here.

    Thanks for your time!

    Jon

    EDIT: Tried it and no, you dont put RewriteBase infront of a php parser thing, as it just stopped me from navigating to any page.

    Put it back to how it was before and am still getting: The image "http://sleinous.x10hosting.mx/foldingsig.png" cannot be displayed, because it contains errors.

    This always happens when the .htaccess file isnt managing to work. (I have permission on to execute it and everything else linked to foldingsig.png).

    EDIT: Just incase AddHanlder is blocked on here, I tried this instead but still no dice:

    Code:
    RewriteEngine On  RewriteBase / RewriteRule foldingsig.png foldingsig.php
    Last edited by sleinous29; 05-25-2011 at 05:47 AM.

  4. #4
    sleinous29 is offline x10Hosting Member sleinous29 is an unknown quantity at this point
    Join Date
    May 2011
    Posts
    5

    Re: .htaccess file may not be working?

    Does anyone have any ideas as to why this is happening?

Closed Thread

Similar Threads

  1. where is index file
    By elena_montana78 in forum Free Hosting
    Replies: 1
    Last Post: 05-20-2011, 08:08 PM
  2. .htaccess
    By kinsay_gwapo52 in forum Free Hosting
    Replies: 2
    Last Post: 05-19-2011, 11:52 PM
  3. How to view asp file?
    By moneybookers_sell38 in forum Free Hosting
    Replies: 2
    Last Post: 05-19-2011, 08:21 AM
  4. Editing Word Presss file '.htaccess'
    By batui42 in forum Free Hosting
    Replies: 2
    Last Post: 05-18-2011, 07:38 AM
  5. File not found error
    By david.gomillion96 in forum Free Hosting
    Replies: 1
    Last Post: 05-15-2011, 10:15 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers