>>>  Home   User-Center   Board
     
 
Goto page 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
eZtreme
Moderator


Joined: 21 Nov 2004
Posts: 521
Location: irc.quakenet.org #funpic

PostPosted: 21.11.04 21:39    Post subject: .htaccess Reply with quote
Funpic.org supports .htaccess, but only for password protection. mod_rewrite and error pages are disabled.

.htaccess
the .htaccess file goes into the directory that you want to protect.
Here a small example of what should be written in the .htaccess:

AuthUserFile /usr/export/www/hosting/*username*/sub-directory/.htpasswd
AuthName secure@sample
AuthType Basic
require valid-user

The first line is where the .htpasswd is located.

.htpasswd
the .htpasswd contains the username(s) and password(s)
Example:

admin:212r4fef$
user:2139ff$f3f

The password and the username are separated by a colon. The password has to be encrypted. HERE you can find a encrypting tool. I'm sorry that it's still in German, but it works fine.
In the first box you have to enter the username, in the second the unencrypted password.

Also this is just a brief tutorial, I hope you understand it. If not just ask here Wink

Last Update: November, 21 2004
by: eZtreme
_________________
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
sebbel
Guest





PostPosted: 22.11.04 19:39    Post subject: Reply with quote
The .htaccess generator is still in german just like the 404 pages.

Yours sincerely
Sebastian
Back to top
cowofchaos
Guest





PostPosted: 02.01.05 16:50    Post subject: Reply with quote
AuthName secure@sample

What is that line for?
Back to top
eZtreme
Moderator


Joined: 21 Nov 2004
Posts: 521
Location: irc.quakenet.org #funpic

PostPosted: 02.01.05 17:04    Post subject: Reply with quote
that is how the "name" of the secure area
for example

AuthName "Admin Panel" or AuthName Admin@CowOfChaos.Funpic.org

(if you want a space in the second part of the line (for example in "Admin Panel") then you have to put quotes around it 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
wap
Guest





PostPosted: 28.01.05 22:04    Post subject: Reply with quote
DirectoryIndex index.wml
addtype text/vnd.wap.wml wml
addtype Aplication.vnd.wap.wmlc wmlc
addtype text/vnd.wap.wmlscript wmls
addtype Aplication/vnd.wap.wap.wmlscriptc wmlsc
addtype image/vnd.wap.wbmp wbmp
<limit GET POST>
order deny,allow
allow from all
deny from all
</Limit>
<Limit PUT DELETE>
order deny,allow
deny from all
</Limit>

What does this htaccess do? Rolling Eyes
Back to top
eZtreme
Moderator


Joined: 21 Nov 2004
Posts: 521
Location: irc.quakenet.org #funpic

PostPosted: 28.01.05 22:09    Post subject: Reply with quote
it makes something that is not allowed (addtype)
_________________
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
whunters
Little-Fun


Joined: 17 Feb 2005
Posts: 24

PostPosted: 01.03.05 22:23    Post subject: Reply with quote
Does the "only for password protection" mean that I can't use the .htaccess for redirect? I'd normally use an index.html for redirect, but for some reason the index.php take priority.

Should I be finding myself a new way to redirect?
Back to top
View user's profile Send private message
ven
Moderator


Joined: 10 Dec 2004
Posts: 2064
Location: USA

PostPosted: 01.03.05 22:52    Post subject: Reply with quote
Correct, you cannot use it to redirect. But if you have an index.php of index.html then you can make them redirect to whatever you need.
_________________

Back to top
View user's profile Send private message
whunters
Little-Fun


Joined: 17 Feb 2005
Posts: 24

PostPosted: 02.03.05 08:27    Post subject: Reply with quote
Alright, I'll remove my .htaccess immediately.

EDIT: Removed, I'm having a problem with the .html redirect. I'll post in the support section.
Back to top
View user's profile Send private message
berknet
Guest





PostPosted: 03.03.05 13:49    Post subject: Reply with quote
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
Back to top
Post new topic   Reply to topic    Webhosting Forum » Tools Goto page 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