Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Redirect URL

Discussion in 'General Discussion' started by mickalo, Oct 26, 2007.

  1. mickalo

    mickalo Well-Known Member

    Apr 16, 2002
    Likes Received:
    Trophy Points:
    N.W. Iowa

    I have a custom who was using a url to a remote order form located on a different server. Now they want to setup this order form on their site as the remote service is no longer available. Is there way to do this as a redirect or mod rewrite ??

    Basically what we have is this, a link on 100 of pages that link to the remotedomain. so when someone clicks on this link, it will redirect them to a localdomain url:

    REMOTEURL: -> 
    can this done with a mod rewrite rule or some type of .htaccess redirect?

    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. webignition

    webignition Well-Known Member

    Jan 22, 2005
    Likes Received:
    Trophy Points:
    It's possible to rewrite urls, and generally play around with urls, for requests coming in to your server as you have control over Apache and so you can tell Apache to behave however you like for whatever request you like.

    For anything else - no chance. You have no control over this as it will be the end user's browser requesting the resource from the remote machine and your server will have nothing to do with it, beyond sending the html pages to the end user's browser in the first place.

    If a customer web site has present as a url and you want this instead to go to, you will need to change the urls in the customer pages in some way.

    If the content is static, you can do things manually or with a global search and replace. If the content is dynamic, you may have to modify the content management system, either by reconfiguring or recoding, to get the result you need.

    Either way, you're going to have to do something that changes the urls in the web pages and you can't merely get the urls to automatically go elsewhere, unless they are changed before being served to the end user's browser.
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice