| |
| View previous topic :: View next topic |
benopski Guest
|
Posted: 15.05.05 10:24 Post subject: |
|
|
|
| berknet wrote: | if you want to redirect, without htaccess, use this:
| Code: |
<?
$sitename = "Sitename"; //name of your site
$siteurl = ""; // url to redirect to
?>
<html>
<head>
<title><?= $sitename ?></title>
</head>
<body>
<?
header("Location: ".$siteurl."");
?>
</body>
</html>
|
shout work  |
You most first enter
<?
header("Location: ".$siteurl."");
?>
and then the rest of the page.
Not in the middl of nowhere!! |
|
| Back to top
|
|
|
ajd344 Fun-Member

Joined: 29 Apr 2005 Posts: 89 Location: USA
|
Posted: 09.06.05 03:26 Post subject: Need help making the file? |
|
|
|
Need help making the file? I wrote a simple program (free & open source) that will make it for you. You dont even have to install it, simply unzip it from the zip file and run it.
It's cool. Just select if you want it to make a .htaccess or .htpasswd file and it will create it and open it in notepad for you so you can edit and save. (this will not save it as txt as long as you click save, not save as)
The file will be in the program folder ready to be uploaded. You can also go back and edit the file within the program if you make a mistake.
------------
Here's the page (click 'download')
http://ajd344.aj.funpic.org/atez/ht/
------------
-Andrew
ps- I made this program and put it here to HELP people, not get free advertising. (I originally made this for myself, but then decided to give it out). I hope you like it!
also, if you need help with it, email me at andrew1[att]atown{dott]org |
|
| Back to top
|
|
|
mjmp3 Guest
|
Posted: 11.06.05 02:10 Post subject: |
|
|
|
| not long ago,i met the error like that,but now i understand!thanks |
|
| Back to top
|
|
|
Yorixz Fun-Kleinkind
Joined: 08 Jan 2005 Posts: 10 Location: Netherlands.
|
Posted: 16.06.05 15:13 Post subject: |
|
|
|
| Syllani wrote: | So no SSI (server-side include) then?
(Unless I am misunderstanding... I am a newb with some of these things...) |
SSI can be done by using | Code: | | <? include(filename); ?> | I didn't try it out on this host yet, but I guess it works
By the way, is there any change the | Code: | | SetHandler application/x-httpd-php | tags will be allowed aswell with .htaccess? That would be extremely usefull. _________________ //Yorixz. |
|
| Back to top
|
|
|
aiowonder Guest
|
Posted: 17.06.05 17:14 Post subject: |
|
|
|
| SSI is not enabled to my knowledge |
|
| Back to top
|
|
|
lupus2k5 Guest
|
Posted: 26.07.05 18:09 Post subject: |
|
|
|
| If there's a password encoder, is there a decoder? Does this mean that .htaccess/.httpd aren't secure??? |
|
| Back to top
|
|
|
eZtreme Moderator

Joined: 21 Nov 2004 Posts: 521 Location: irc.quakenet.org #funpic
|
|
| Back to top
|
|
|
lupus2k5 Guest
|
Posted: 26.07.05 23:08 Post subject: |
|
|
|
I didn't say that, I'm implying that if there is a way to encode it, isn't there a way to create the opposite and decode it?
Wow, I'm stupid. Obviously it encodes with a random set of numerals mathematically.
Last edited by lupus2k5 on 27.07.05 19:48; edited 1 time in total |
|
| Back to top
|
|
|
eZtreme Moderator

Joined: 21 Nov 2004 Posts: 521 Location: irc.quakenet.org #funpic
|
|
| Back to top
|
|
|
ven Moderator

Joined: 10 Dec 2004 Posts: 2064 Location: USA
|
Posted: 27.07.05 23:29 Post subject: |
|
|
|
OK, I don't think either of you understands how .htaccess passwords work. First of all, it's not encryption, it's one-way hashing. That means that, as opposed to encryption, the password is converted to such a string that it cannot be converted back.
As for the changing hash every time you create a password, that's because the first two characters of the password are the "salt" value - they, in addition to the actual password, determine what the rest of the string will be. If you specify your own salt and make it the same every time, your password hashes will be the same too. I suggest reading http://us3.php.net/crypt for more info on this. _________________

|
|
| Back to top
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
| |
|