PHP Problems

Parsa44

New Member
Messages
232
Reaction score
0
Points
0
About 6 months ago i signed up for a free host, unlimited bandwidth 500mb space and free domain for 2yrs.

After building my website a bit i decided to start learning PHP. It was all going well till i discovered my host didnt support PHP.

Now i am pretty stuck because the registrar i am with charges $35 for 1 yr domain renewal. And my host wont give my DRK (domain registration key) unless i cancel all the 1.5yrs it has left on it.

So if i do want to change hosts it will take about 6 weeks if i dont pay $35 to renew my domain for 1 yr....


So here is the PHP related problem.

Since i cannot have server side on my host, is it possible to use another URL, on another server to do the PHP bit then "send" it to my main host? Using javascript or something?

I dont want to use a iframe because i dont want to damage my reputation with search engines. (iframes are constantly used to duplicate content)
 

Scoochi2

New Member
Messages
185
Reaction score
0
Points
0
Does your current host allow you to use .htaccess? If so, you shouldn't have a problem. Even if not, you can still redirect without using JavaScript.

Put the following into your .htaccess (if you can use it):
Code:
RewriteEngine On
 
RewriteCond %{HTTP_HOST} ^.*myoldsite\.com$ [NC]
RewriteRule ^(.*)$ http://www.mynewsite.net/$1 [R=301,L]
Obviously, change the address of the two site names in the above.

In addition, your index page should look something like the following:
HTML:
HTTP/1.1 301 Moved Permanently
Location: http://www.example.org/
Content-Type: text/html
Content-Length: 174
 
<html>
<head>
<title>Moved</title>
</head>
<body>
<h1>Moved</h1>
<p>This page has moved to <a href="http://www.example.org/">http://www.mynewsite.net</a>.</p>
</body>
</html>
 

Parsa44

New Member
Messages
232
Reaction score
0
Points
0
The problem now is stealing the .com version of my domain >.< i really hope that guy doesnt want it anymore or has gone on a extended holiday or something.

in 173 days it will expire and go through grace periods ect.
 
Last edited:
Top