![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
Confirmed User
Join Date: Mar 2003
Location: Very small penis
Posts: 5,809
|
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? |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
Confirmed User
Join Date: Sep 2003
Posts: 1,650
|
ErrorDocument 404 http://www.myserver.com/access/
as anyword would create a 404 error this will then redirect to the root of that folder |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
Confirmed User
Industry Role:
Join Date: Mar 2003
Location: ::::::::::::: :::::::::::||::::::::::: :::::::::::||::::::::::: :::::::::::||::::::::::: :::::::::::||::::::::::: :::::::::::||::::::::::: ::::::||||||||||||:::::: :::::::::::||::::::::::: :::::::::::||::::::::::: ::::::::::::::::::::::::
Posts: 7,197
|
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)
__________________
Amen |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
Confirmed User
Join Date: Mar 2003
Location: Very small penis
Posts: 5,809
|
I doesnt work, my server goes 500 with it
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 |
Confirmed User
Industry Role:
Join Date: Mar 2003
Location: ::::::::::::: :::::::::::||::::::::::: :::::::::::||::::::::::: :::::::::::||::::::::::: :::::::::::||::::::::::: :::::::::::||::::::::::: ::::::||||||||||||:::::: :::::::::::||::::::::::: :::::::::::||::::::::::: ::::::::::::::::::::::::
Posts: 7,197
|
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.
__________________
Amen |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 |
Confirmed User
Join Date: Mar 2003
Location: Very small penis
Posts: 5,809
|
No luck
![]() But thanks for trying |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 |
Confirmed User
Join Date: Feb 2003
Location: CheapAssDesigns.com
Posts: 1,874
|
http://www.engelschall.com/pw/apache/rewriteguide/
very simple use the "Dynamic Mirror" pass-thru option
__________________
CheapAssDesigns.com - when you need quality designs at affordable prices. icq: 230-729-205 info |at| cheap ass designs dot com |
![]() |
![]() ![]() ![]() ![]() ![]() |