.htaccess file may not be working?

Status
Not open for further replies.

sleinous29

New Member
Messages
5
Reaction score
0
Points
0
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:

descalzo

Grim Squeaker
Community Support
Messages
9,373
Reaction score
326
Points
83
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
 

sleinous29

New Member
Messages
5
Reaction score
0
Points
0
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:
Status
Not open for further replies.
Top