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)
-   -   Mod_ReWrite Questions.... (https://gfy.com/showthread.php?t=37124)

Xanobyte 08-17-2001 02:54 PM

Mod_ReWrite Questions....
 
Anyone here know how to set up mod_rewrite? It's already set to load in my httpd.conf, but when I stick an .htaccess somewhere, it just bypasses. Or is that normal for local requests?

------------------
I wanna be a porn webmaster when I grow up!

dynamite 08-17-2001 03:06 PM

Change 'AllowOverride None' to 'AllowOverride All' in access.conf. Or you can set 'All' for just one directory, for example:

<Directory full/path/to/desired/dir>
<Limit GET POST>
order deny,allow
deny from none
allow from all
</Limit>
AllowOverride All
</Directory>

And even better - set up .htaccess rules between <directory></directory>... this is even faster than .htaccess file! Btw.. <limit> directives are optional.
<font size="-3" color=magenta>


[This message has been edited by dynamite (edited 08-17-2001).]

Xanobyte 08-17-2001 03:37 PM

Actually, this ver. recommends all directives to be in httpd.conf and leave access.conf empty, but are you saying I have to set up .ht rules for each directory I wanna cover in the virtual container?? Or can I do a blanket directive for the root and if it finds an .htaccess then so be it?

------------------
I wanna be a porn webmaster when I grow up!

dynamite 08-17-2001 03:43 PM

Just one directive for the whole site can be enough. But if you want to have some directories with .htaccess and some without, then you must make separate 'directory' entries.

afrocreep 08-17-2001 03:48 PM

for example

<Directory /home/whatever/*>

</Directory>

will do that directory and everything under it

------------------
Come home with me or I'll dispatch my legions of flying monkeys!

Xanobyte 08-18-2001 07:13 PM

Sweeeeeeeeeeet.
I jacked my httpd.conf up a few times fuckin' around with it, (was tryin' to put too many directives in at the same time.)
but I finally nailed it down.

Thanks guys... http://bbs.gofuckyourself.com/board/wink.gif

------------------
I wanna be a porn webmaster when I grow up!

Xanobyte 08-18-2001 11:26 PM

Quote:

Originally posted by dynamite:
...even better - set up .htaccess rules between <directory></directory>... this is even faster than .htaccess file
I really like this. http://bbs.gofuckyourself.com/board/biggrin.gif
And no .htaccess for anyone to even try to hack.



------------------
I wanna be a porn webmaster when I grow up!

Xanobyte 08-19-2001 12:18 AM

Hotlinkers, take note:
The party is over on this server.
(fuckin' bastards.)


All times are GMT -7. The time now is 04:07 AM.

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