Redirecting a URL

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • globofun
    Buk Lau
    • Aug 2005
    • 2651

    #1

    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!
  • Ferus
    Bye - Left to do stuff
    • Feb 2013
    • 4108

    #2
    Use htaccess

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

    Comment

    • seeandsee
      Check SIG!
      • Mar 2006
      • 50945

      #3
      or redirect via cpanel
      BUY MY SIG - 50$/Year

      Contact here

      Comment

      • Zeiss
        Confirmed User
        • May 2012
        • 5189

        #4
        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.


        Adult Webmasters Guides

        Comment

        • globofun
          Buk Lau
          • Aug 2005
          • 2651

          #5
          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!

          Comment

          • Zeiss
            Confirmed User
            • May 2012
            • 5189

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


            Adult Webmasters Guides

            Comment

            • alcstrategy
              Confirmed User
              • May 2012
              • 124

              #7
              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

              Comment

              Working...