![]() |
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 :( |
|
or redirect via cpanel
|
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.
|
Tried a few things and still do not get it right......thanks guys
|
Do what i told you. Or ask your hosting support to do it for you.
|
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