GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Do you know how to use .htaccess? (https://gfy.com/showthread.php?t=738942)

chaze 06-02-2007 12:30 PM

Do you know how to use .htaccess?
 
Taking poll if it's more common to know how to use htaccess or not.

There are some great security options with it and of course password protection. But any other tricks like 501 redirects..

xclusive 06-02-2007 12:38 PM

Yup, Been using it for years.

xclusive 06-02-2007 12:43 PM

HTAccessible is a great free tool

http://www.tlhouse.co.uk/pc_software.shtml

http://www.tlhouse.co.uk/htac1000.exe

GrouchyAdmin 06-02-2007 12:45 PM

A quick note: Using .htaccess instead of server rules causes extra file, and rule lookups for each request, which will eventually cause a slowdown, and it won't work if AuthConfig is not set to Override. (The former is incredibly common with virtualhosts; it makes the admin's job easier.)

It's a quick way to make changes if you do not have access to your webserver's configuration, but if you do, there are better ways to set it up, such as in the webserver config file for that host.

Always wrap your statements properly.

Putting: RewriteEngine On in your .htacess is not as safe as:

<IfModule mod_rewrite.c>
RewriteEngine On
</IfModule>

In case if someone screws up on a webserver upgrade, the above will say 'Ok, so, rewrite isn't here, but we can deal with that.' The former will cause a 500 error, and your site will be down until someone notifies the administration that something bad happened.

...end of hijack. :thumbsup

Andiz 06-02-2007 01:32 PM

Ofcouse I know how to use it.

sumphatpimp 06-02-2007 04:30 PM

yes
.htaccess is one of the very first things i learned.
shouldn't be a problem for anyone, there are plenty of tutorials all over the interweb net thingy.

Vendzilla 06-02-2007 05:28 PM

http://www.htaccesstools.com/ makes it easy

Jace 06-02-2007 05:30 PM

Quote:

Originally Posted by GrouchyAdmin (Post 12532039)
A quick note: Using .htaccess instead of server rules causes extra file, and rule lookups for each request, which will eventually cause a slowdown, and it won't work if AuthConfig is not set to Override. (The former is incredibly common with virtualhosts; it makes the admin's job easier.)

It's a quick way to make changes if you do not have access to your webserver's configuration, but if you do, there are better ways to set it up, such as in the webserver config file for that host.

Always wrap your statements properly.

Putting: RewriteEngine On in your .htacess is not as safe as:

<IfModule mod_rewrite.c>
RewriteEngine On
</IfModule>

In case if someone screws up on a webserver upgrade, the above will say 'Ok, so, rewrite isn't here, but we can deal with that.' The former will cause a 500 error, and your site will be down until someone notifies the administration that something bad happened.

...end of hijack. :thumbsup


don't try and educate chaze....LOL...pointless

can't forget, his host cancels people for starting too many blogs :1orglaugh:1orglaugh:1orglaugh

aztecboi2003 06-02-2007 05:50 PM

I have no clue of how to use it. Wish I did though, seems like it could be useful.


All times are GMT -7. The time now is 02:21 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123