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)
-   -   Redirecting a URL (https://gfy.com/showthread.php?t=1112040)

globofun 06-10-2013 12:38 AM

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 :(

Ferus 06-10-2013 12:57 AM

Use htaccess

http://stackoverflow.com/questions/1...-with-htaccess

seeandsee 06-10-2013 01:52 AM

or redirect via cpanel

Zeiss 06-10-2013 02:05 AM

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.

globofun 06-10-2013 07:29 AM

Tried a few things and still do not get it right......thanks guys

Zeiss 06-10-2013 07:43 AM

Do what i told you. Or ask your hosting support to do it for you.

alcstrategy 06-10-2013 09:24 AM

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


All times are GMT -7. The time now is 02:13 AM.

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