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)
-   -   should you have 1 htaccess file on your site, or several? (https://gfy.com/showthread.php?t=443588)

AsylumN 03-13-2005 05:18 PM

should you have 1 htaccess file on your site, or several?
 
Ok, I have a htacess file for my members area, and now i want to put a few more htacess files on my site, so should I just paste the new htacess lines in my old htacess file, or should I create a whole seperate htacess file?

I know that everytime your server has to access htaccess, it uses up server resources, so which is better? All your htaccess stuff on 1 file, or several files?

mrthumbs 03-13-2005 05:22 PM

dioesnt matter.. whatever is convenient for you.

AsylumN 03-13-2005 07:03 PM

Really? it doent matter?

AsylumN 03-14-2005 12:01 AM

bump for confirmation of what mrthumbs said

JOKER 03-14-2005 12:12 AM

You mean multiple .htaccess for one site (domain) ?

I see no need for that.

Usually all info goes into one, why would you create more, I doubt
it's even possible.

Maybe explain a little better what you wanna do.

mistress69 03-14-2005 12:25 AM

I have a couple on my sites

JOKER 03-14-2005 12:53 AM

Quote:

Originally Posted by mistress69
I have a couple on my sites

In different directories, right?

Aquarius 03-14-2005 12:56 AM

Quote:

Originally Posted by mistress69
I have a couple on my sites

What sites do you run?

Pete-KT 03-14-2005 01:01 AM

it doesnt matter

AsylumN 03-14-2005 10:17 AM

Quote:

Originally Posted by JOKEREMPIRE
You mean multiple .htaccess for one site (domain) ?

I see no need for that.

Usually all info goes into one, why would you create more, I doubt
it's even possible.

Maybe explain a little better what you wanna do.

Well, what I meant is wether it's better to just put one big htaccess file in the root to cover evberything, or to put smaller ones in the directory of each site.

teksonline 03-14-2005 10:22 AM

the only thing you should be concerned with is mod rewrite or other cpu intensive stuff, in which in that case, the only thing you need to worry about is how you are organizing your content... so that if things are being parsed, it's only parsing whats neccesary and nothing more.

for example

say you want a .html file but its really a .shtml and yours just parsting .html on the fly, then all .html in that directory is being parsed as well, sucking your server CPU, so if you only have one of these files, stick it in a subdirectory so only that one page is being parsed

StuartD 03-14-2005 10:23 AM

Yeah, if you need specific directories to behave differently than others... for example, having one directory 404 to one sponsor and another directory 404 to another.

otherwise, no real need.

mortenb 03-14-2005 10:30 AM

Quote:

Originally Posted by teksonline
the only thing you should be concerned with is mod rewrite or other cpu intensive stuff, in which in that case, the only thing you need to worry about is how you are organizing your content... so that if things are being parsed, it's only parsing whats neccesary and nothing more.

for example

say you want a .html file but its really a .shtml and yours just parsting .html on the fly, then all .html in that directory is being parsed as well, sucking your server CPU, so if you only have one of these files, stick it in a subdirectory so only that one page is being parsed

or tell the server to only parse "file_in_question.html" as shtml in the same .htaccess.

It doesn't really matter if they are divided up.. Depends on what you need and how your files are structured.


All times are GMT -7. The time now is 01:49 PM.

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