FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


Need help with htaccess





Mgccl
look at this
http://lf2.frih.net/sign/sign.php

it will automatically show a png file....
now I got a problem... is like some PHPbb don't let you use img tag around php files... like this one
[img]http://lf2.frih.net/sign/sign.php[/img]

so... what can I do? I heard someone said edit httpaccess to make go to a sign.png, but which is redrecting to sign.php.... but what's httpaccess? can anyone help, I don't know how to do it?
Stubru Freak
First make sure you don't have any password protection or custom error page or something on that folder because it may get erased.
To check this, be sure to set your ftp client to show hidden files and look if there's already a file called .htaccess.
If so, download it.
If not, make a file called .htaccess (nothing before the dot, this won't work in windows, if you have windows do the following:
name it a.htaccess, upload to server, rename to .htaccess there, and download again, then windows will accept the name)

Then open the .htaccess file.
Type the following code there (didn't check it but should work):

Code:
RewriteEngine On
RewriteBase /
RewriteRule ^rewrite.png$ rewrite.php


If it doesn't work let me know, but it should work normally.
Mgccl
THX, it really helped~
Related topics
htaccess Password Protection
.htaccess tutorial
[tutor] How to protect images without htaccess using PHP
Custom error pages using .htaccess
.htaccess problem
.htaccess again
[HELP]redireccion de subdominios por medio de .htaccess
Help please,"Forbidden You don't have permission to acc
question about .htaccess mod_python with publisher mod
.htaccess Problem With Register_Globals
secure subdomain .htaccess problem.
Where is the php.ini file?
.htaccess help
.htaccess Problem - PLEASE help - Reward Offered
This topic is locked: you cannot edit posts or make replies.    Frihost Forum Index -> Scripting -> Php and MySQL

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.