| View previous topic :: View next topic |
eZtreme Moderator

Joined: 21 Nov 2004 Posts: 521 Location: irc.quakenet.org #funpic
|
Posted: 21.11.04 21:39 Post subject: .htaccess |
|
|
|
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
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
|
|
|
sebbel Guest
|
Posted: 22.11.04 19:39 Post subject: |
|
|
|
The .htaccess generator is still in german just like the 404 pages.
Yours sincerely
Sebastian |
|
| Back to top
|
|
|
cowofchaos Guest
|
Posted: 02.01.05 16:50 Post subject: |
|
|
|
AuthName secure@sample
What is that line for? |
|
| Back to top
|
|
|
eZtreme Moderator

Joined: 21 Nov 2004 Posts: 521 Location: irc.quakenet.org #funpic
|
|
| Back to top
|
|
|
wap Guest
|
Posted: 28.01.05 22:04 Post subject: |
|
|
|
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?  |
|
| Back to top
|
|
|
eZtreme Moderator

Joined: 21 Nov 2004 Posts: 521 Location: irc.quakenet.org #funpic
|
|
| Back to top
|
|
|
whunters Little-Fun
Joined: 17 Feb 2005 Posts: 24
|
Posted: 01.03.05 22:23 Post subject: |
|
|
|
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
|
|
|
ven Moderator

Joined: 10 Dec 2004 Posts: 2064 Location: USA
|
Posted: 01.03.05 22:52 Post subject: |
|
|
|
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
|
|
|
whunters Little-Fun
Joined: 17 Feb 2005 Posts: 24
|
Posted: 02.03.05 08:27 Post subject: |
|
|
|
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
|
|
|
berknet Guest
|
Posted: 03.03.05 13:49 Post subject: |
|
|
|
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  |
|
| Back to top
|
|
|