>>>  Home   User-Center   Board
     
 
Goto page Previous  1, 2, 3, 4, 5, 6, 7  Next
 
Post new topic   Reply to topic    Webhosting Forum » Tools » .htaccess
View previous topic :: View next topic  
Author Message
benopski
Guest





PostPosted: 15.05.05 10:24    Post subject: Reply with quote
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 Smile


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

PostPosted: 09.06.05 03:26    Post subject: Need help making the file? Reply with quote
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
View user's profile Send private message
mjmp3
Guest





PostPosted: 11.06.05 02:10    Post subject: Reply with quote
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.

PostPosted: 16.06.05 15:13    Post subject: Reply with quote
Syllani wrote:
So no SSI (server-side include) then? Sad
(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 Wink

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
View user's profile Send private message
aiowonder
Guest





PostPosted: 17.06.05 17:14    Post subject: Reply with quote
SSI is not enabled to my knowledge
Back to top
lupus2k5
Guest





PostPosted: 26.07.05 18:09    Post subject: Reply with quote
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

PostPosted: 26.07.05 19:26    Post subject: Reply with quote
Rolling Eyes question: why would we even bother to encode it if there is a decoder Question
answer: because there is no decoder Exclamation Rolling Eyes
_________________
FIREFOX
Anti IE ...trying to stop the Internet Explorer
Anti IE banners for _your_ forum signature!
Back to top
View user's profile Send private message
lupus2k5
Guest





PostPosted: 26.07.05 23:08    Post subject: Reply with quote
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

PostPosted: 27.07.05 02:16    Post subject: Reply with quote
well, you don't even understand what "encryption" is, so I am not suprised by your signature Rolling Eyes
oh, and btw, did you ever try to encrypt the same pasword twice? did you get the same results? that should answer your question Wink
_________________
FIREFOX
Anti IE ...trying to stop the Internet Explorer
Anti IE banners for _your_ forum signature!
Back to top
View user's profile Send private message
ven
Moderator


Joined: 10 Dec 2004
Posts: 2064
Location: USA

PostPosted: 27.07.05 23:29    Post subject: Reply with quote
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
View user's profile Send private message
Post new topic   Reply to topic    Webhosting Forum » Tools Goto page Previous  1, 2, 3, 4, 5, 6, 7  Next

 
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
Impressum Datenschutz