Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Oct 2009
    Posts
    4

    Default frustrating redirect

    i dont know how to ask this or if it is even possible. basically i want to redirect several pages to one page. for example:

    domain1.com/123
    domain2.com/123
    domain3.com/123

    -----redirect to-----

    domain10.com

    i tried using all public domains, entered the "123" and the redirect page and ticked redirect with or without www. the only domain that will redirect is the account domain, none of the addon domains will redirect. they will only give 404.

    any ideas?

  2. #2
    cPanel Product Evangelist Infopro's Avatar
    Join Date
    May 2003
    Location
    Pennsylvania
    Posts
    7,892
    cPanel/Enkompass Access Level

    Root Administrator

    Lightbulb

    If you just want to redirect those domains to point to the main domain, instead of using addon domains ad redirects, why not use the parked domains feature instead? This will give you what you seek, only catch is once at the site from a parked domain, any internal links clicked will be for the main domain, not the parked domain.

  3. #3
    Registered User
    Join Date
    Oct 2009
    Posts
    4

    Default

    Quote Originally Posted by Infopro View Post
    If you just want to redirect those domains to point to the main domain, instead of using addon domains ad redirects, why not use the parked domains feature instead? This will give you what you seek, only catch is once at the site from a parked domain, any internal links clicked will be for the main domain, not the parked domain.
    thanks for the response. i dont want the root of those domains to redirect to my new domain, i want a subdirectory of all my domains to redirect to a specific domain.

    domain1.com/sub redirects to domain10.com
    or
    domain2.com/sub22 redirects to domain.com

    i dont want to create a php redirect script for each subdirectory since it can be a pain to change (over 40 seperate scripts). i can get the account domain to work, but not the addons.

  4. #4
    cPanel Product Evangelist Infopro's Avatar
    Join Date
    May 2003
    Location
    Pennsylvania
    Posts
    7,892
    cPanel/Enkompass Access Level

    Root Administrator

    Lightbulb

    Quote Originally Posted by afallison View Post
    i dont know how to ask this or if it is even possible. basically i want to redirect several pages to one page. for example:

    domain1.com/123
    domain2.com/123
    domain3.com/123

    -----redirect to-----

    domain10.com

    i tried using all public domains, entered the "123" and the redirect page and ticked redirect with or without www. the only domain that will redirect is the account domain, none of the addon domains will redirect. they will only give 404.
    any ideas?
    Sorry, I misread this.

    I just tested this below, and it works. Only difference is I used a parked domain instead of an addon.

    In redirects section I set things like this:

    Type: Permanent

    I selected the parked domain instead of leaving it to All Public Domains.
    I typed in 123 after the / on the second box.

    Redirects to-> I set to: http://google.com

    I left redirect with or without www and did not check the wildcard.

    If I check the url myparkeddomain.com/123/ it goes directly to google as expected.

    In that accounts htaccess the redirect for it looks like this:

    RewriteCond %{HTTP_HOST} ^myparkeddomain.com$ [OR]
    RewriteCond %{HTTP_HOST} ^www.myparkeddomain.com$
    RewriteRule ^123\/?$ "http\:\/\/google\.com\/" [R=301,L]

    Not sure if that helps or not.

Similar Threads & Tags
Similar threads

  1. Planned for 11.34 Webmail Icon in cPanel is frustrating [Case 32180]
    By 4u123 in forum Feature Requests for cPanel/WHM
    Replies: 68
    Last Post: 05-11-2012, 06:07 PM
  2. Cannot SSH... Really Frustrating!
    By xaze in forum cPanel and WHM Discussions
    Replies: 9
    Last Post: 05-20-2006, 10:37 PM
  3. DNS Templates - Very Frustrating
    By hostricity in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 06-29-2004, 03:33 PM
  4. Frustrating! Can someone tell me please?
    By BeerUser in forum cPanel and WHM Discussions
    Replies: 10
    Last Post: 05-16-2004, 05:46 AM
  5. Some frustrating backup/restore issues
    By ellijay in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 03-10-2003, 02:24 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube