1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

host a simple php page.

Discussion in 'Blogging' started by drissWazahri, Aug 3, 2016.

  1. drissWazahri

    drissWazahri Junior Member

    Joined:
    Jun 21, 2016
    Messages:
    180
    Likes Received:
    14
    Gender:
    Male
    Hello everyone

    I'm facing an issue if someone help me i'll appreciate it

    I have purshased host in IPAGE and they give me a domaine

    so my object is to make a simple page php to redirect my traffic to other site
    Like that :header('Location: www.othersite.com');

    i spent all day by searching but in vain
    because thats my first time that i buy a host and domaine , i don't really know how is going
    i installed wordpress but thats not what i want , i would just like to upload my phppage and refer it to my domaine purshased already

    thank youuu very muchh for ypour coperation in advance.
     

    Attached Files:

  2. Asif WILSON Khan

    Asif WILSON Khan Executive VIP Jr. VIP

    Joined:
    Nov 10, 2012
    Messages:
    12,121
    Likes Received:
    33,649
    Gender:
    Male
    Occupation:
    Fun Lovin' Criminal
    Location:
    London
    Home Page:
    • Thanks Thanks x 1
  3. Dev Warrior

    Dev Warrior Jr. VIP Jr. VIP Premium Member

    Joined:
    Oct 13, 2015
    Messages:
    263
    Likes Received:
    30
    Home Page:
    You can use .htaccess file to redirect old domain to new domain -

    this .htaccess code redirects everything after the domain name on the url to the exact same copy on the new domain url:

    RewriteEngine on
    RewriteRule ^(.*)$ http://www.newdomain.com/$1 [R=301,L]
     
    • Thanks Thanks x 1
  4. loedown

    loedown Jr. VIP Jr. VIP

    Joined:
    Jun 29, 2009
    Messages:
    1,607
    Likes Received:
    504
    Home Page:
    Just use the .htaccess and 301 redirect it.

    PS good luck with iPage. They Suck.
     
    • Thanks Thanks x 1
  5. drissWazahri

    drissWazahri Junior Member

    Joined:
    Jun 21, 2016
    Messages:
    180
    Likes Received:
    14
    Gender:
    Male
    Thank you all for your prompt reactivity
    @Asif WILSON Khan, @Dev Warrior :
    but i don't want automatic redirect because I want to use in instagram so they can detect that kind of redirection
    Just i would to redirect by code PHp , so just host my my page index.php that contain a code header(location.......) and refer it to my domain that i have in ipage.

    @loedown that my first host and i chose them because their price are cheap for me ,
     
  6. Asif WILSON Khan

    Asif WILSON Khan Executive VIP Jr. VIP

    Joined:
    Nov 10, 2012
    Messages:
    12,121
    Likes Received:
    33,649
    Gender:
    Male
    Occupation:
    Fun Lovin' Criminal
    Location:
    London
    Home Page:

    Try reading these:
    http://www.ipage.com/knowledgebase/beta/article.bml?ArticleID=1290
    http://www.ipage.com/knowledgebase/read_article.bml?kbid=7090
    http://www.ipage.com/knowledgebase/read_article.bml?kbid=345

    http://lmgtfy.com/?q=ipage+install+php
    http://lmgtfy.com/?q=ipage+run+php+script
    http://lmgtfy.com/?q=running+php+on+ipage

    You might need to contact iPage support.
     
    • Thanks Thanks x 1
  7. drissWazahri

    drissWazahri Junior Member

    Joined:
    Jun 21, 2016
    Messages:
    180
    Likes Received:
    14
    Gender:
    Male
  8. SEMWORLD

    SEMWORLD BANNED BANNED

    Joined:
    Nov 21, 2015
    Messages:
    1,235
    Likes Received:
    219
    Hello buddy. I do understand what yo are going through. For you to be able to handle such a thing, you need to be a bit knowledgeable when it comes to controls. There is a file called htaccess that has all the routing paths on it. You can use the file to manipulate all the routing issues about your page. You can seek help in details.
     
    • Thanks Thanks x 1
  9. drissWazahri

    drissWazahri Junior Member

    Joined:
    Jun 21, 2016
    Messages:
    180
    Likes Received:
    14
    Gender:
    Male
    Thank you SEMWORLD
    i did it without using htaccess just upload my php file to my hosting :)