host a simple php page.

drissWazahri

Regular Member
Joined
Jun 21, 2016
Messages
281
Reaction score
29
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.
 

Attachments

  • ipage.PNG
    ipage.PNG
    79.9 KB · Views: 5
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]
 
Just use the .htaccess and 301 redirect it.

PS good luck with iPage. They Suck.
 
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 ,
 
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 ,


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.
 
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.
 
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.
Thank you SEMWORLD
i did it without using htaccess just upload my php file to my hosting :)
 
Back
Top