Results 1 to 4 of 4
  1. #1
    Join Date
    Jan 2010
    Location
    In your head
    Posts
    61

    help on url frame redirection

    I have a domain in namecheap which i use it for url frame forwarding.

    here's what i want to achieve.

    DOMAIN-A.COM (original domain)
    DOMAIN-B.COM (url framed domain from DOMAIN-A.COM)

    so naturally when i go to domain-b.com, address bar in the browser should show domain-b.com because domain-a.com is framed to domain-b.com

    here's the thing, when domain-b.com is accessed from mobile device(android,iphone,ipad) domain-a recognizes this and redirects to domain-a/mobile (shown in address bar) instead of showing domain-b.com in the address bar(framed)

    what i want is when my domain is accessed from pc it shows framed. but when mobile, it redirects to original address.

    i think it has something to do with some htaccess or some redirection script but i need your idea and advice. thank you.

  2. #2
    Join Date
    Feb 2006
    Posts
    4,799
    Quote Originally Posted by sk8er431 View Post
    what i want is when my domain is accessed from pc it shows framed. but when mobile, it redirects to original address.
    Isn't that what is happening already?
    WHMEasyBackup.com - Take Control Of Your Backups!
    Complete Backup Solution For WHM Reseller Accounts
    Download Trial

  3. #3
    No, it can't be .htaccess. The redirection is based on user agent and typically it is done by server side script (PHP) or javascript. I think there is some CSS tricks as well. So you need to check the script on domain-a.com. It is hard to give any suggestion, without knowing the code.

    BTW, URL framing is bad idea, especially for search engine optimization. A proper 301 redirect would be better option.
    Hosting Coupons: MediaTemple Recurring Discount, HostNine Offers and more..

  4. #4
    Join Date
    Jan 2010
    Location
    In your head
    Posts
    61
    thank you for your answers, php looks like the solution but i didnt know there was a trick to do that through css. if anyone has an example in php please let me know =) thank you.

Similar Threads

  1. Enom URL frame
    By sarfios in forum Domain Names
    Replies: 3
    Last Post: 07-24-2012, 03:45 PM
  2. URL Frame with SEO - Possible?
    By bravelion in forum SEO / SEM Discussions
    Replies: 11
    Last Post: 06-13-2010, 07:37 PM
  3. URL Frame Script For CPanel ?
    By HerrmannTheGerman in forum Hosting Software and Control Panels
    Replies: 5
    Last Post: 03-15-2010, 08:23 AM
  4. Short URL / URL Redirection Site
    By anurva-Mehul in forum Domain Name with Web Site Offers
    Replies: 0
    Last Post: 06-24-2007, 12:39 AM
  5. frame redirection with .htaccess
    By psylenced in forum Hosting Security and Technology
    Replies: 3
    Last Post: 09-23-2004, 03:24 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •