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)
-   -   Who knows about HTACCESS (https://gfy.com/showthread.php?t=205598)

biskoppen 12-07-2003 04:26 AM

Who knows about HTACCESS
 
I need a piece of code that makes my server display the content in :

http://www.myserver.com/access/

if this URL is loaded

http://www.myserver.com/access/[any_word]/

When loaded the URL in the adressbar still needs to be http://www.myserver.com/access/[any_word]/

Anyone?

{fusion} 12-07-2003 04:30 AM

ErrorDocument 404 http://www.myserver.com/access/

as anyword would create a 404 error this will then redirect to the root of that folder

- Jesus Christ - 12-07-2003 04:30 AM

If you have mod_rewite on this MIGHT work, I havent tryed it myself.


RewriteEngine On
RewriteRule ^access/([/:|\s\-\'{}().&_a-zA-Z0-9+=]*) http://www.myserver.com/access/


put that in your ROOT dir (ie http://www.myserver.com/.htaccess)

biskoppen 12-07-2003 05:28 AM

I doesnt work, my server goes 500 with it

- Jesus Christ - 12-07-2003 05:52 AM

hmmmm yea I forgot you cant use full URLS in a rewrite.

try these

RewriteRule ^access/([/:|\s\-'{}().&_a-zA-Z0-9+=]*) /access/
RewriteRule ^access/([/:|\s\-'{}().&_a-zA-Z0-9+=]*)/ /access/

or

RewriteRule /access/([/:|\s\-'{}().&_a-zA-Z0-9+=]*) /access/
RewriteRule /access/([/:|\s\-'{}().&_a-zA-Z0-9+=]*)/ /access/



Im not that good with rewrite rules.

biskoppen 12-07-2003 08:54 AM

No luck :)

But thanks for trying

Broda 12-07-2003 12:04 PM

http://www.engelschall.com/pw/apache/rewriteguide/

very simple

use the "Dynamic Mirror" pass-thru option


All times are GMT -7. The time now is 09:47 AM.

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