![]() |
![]() |
![]() |
||||
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 |
Buk Lau
Industry Role:
Join Date: Aug 2005
Location: Rangahan Titomangoyamteerumgae
Posts: 2,651
|
Redirecting a URL
I've been away from the game for too long and can't remember how to redirect a specific directory to another URL (I had a site with directories, but rebuilt from scratch with subdomains instead....)
from let's say www.mydomain.com/hardcore to www.hardcore.mydomain.com Any help would be great......can't find anything on G ![]()
__________________
Wanna Make Huge Profits? Listen to me carefully: I will not tell you how to make money in this business and I won't give you a Fucking Link to a sponsor so I can make 5% of nothing....get yourself a Fucking Plan, stick to it, don't be a Lazy Bitch, and you will make money! ![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
Bye - Left to do stuff
Industry Role:
Join Date: Feb 2013
Posts: 4,108
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
Confirmed User
Industry Role:
Join Date: May 2012
Location: With your mom
Posts: 5,189
|
Depends what web server you run on your server and what kind of access you have to it. Specify that but either way, you basically need to tell your webserver which folder is the root folder for that subdomain. That would do.
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 |
Buk Lau
Industry Role:
Join Date: Aug 2005
Location: Rangahan Titomangoyamteerumgae
Posts: 2,651
|
Tried a few things and still do not get it right......thanks guys
__________________
Wanna Make Huge Profits? Listen to me carefully: I will not tell you how to make money in this business and I won't give you a Fucking Link to a sponsor so I can make 5% of nothing....get yourself a Fucking Plan, stick to it, don't be a Lazy Bitch, and you will make money! ![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 |
Confirmed User
Industry Role:
Join Date: May 2012
Location: With your mom
Posts: 5,189
|
Do what i told you. Or ask your hosting support to do it for you.
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 |
Confirmed User
Industry Role:
Join Date: May 2012
Posts: 124
|
example based on your example
RewriteRule ^hardcore$ http://hardcore.whatever.com [R] would take the word "hardcore" in the uri and redirect . ^ is beginning of uri $ stops [R] is a forced redirect http://httpd.apache.org/docs/current...d_rewrite.html mod rewrite docs for other flags, syntax, etc and for using patterns look up regular expressions reference |
![]() |
![]() ![]() ![]() ![]() ![]() |