News:

Printed Amstrad Addict magazine announced, check it out here!

Main Menu

Unofficial Amstrad WWW Resource

Started by arnoldemu, 10:47, 04 March 10

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

arnoldemu

The unofficial Amstrad WWW Resource has changed home, because soon I will no longer have the webpace from my broadband supplier.
Of course the www.cpctech.org.uk still works, but soon www.kjthacker.f2s.com will no longer work.
The old method used "web forward" which didn't work correctly with more links.

Once I have figured out how to force the DNS to perform a correct forward (301 or 302 I think), then all web links will be like this www.cpctech.org.uk/docs/arn5new.html etc.
My games. My Games
My website with coding examples: Unofficial Amstrad WWW Resource

ukmarkh

If you need... I have a Virgin Media internet account, I don't use the web storage they gave me, could host it on there if you like. Free!

arnoldemu

Quote from: ukmarkh on 10:59, 04 March 10
If you need... I have a Virgin Media internet account, I don't use the web storage they gave me, could host it on there if you like. Free!
thankyou for your offer, however Markus has already offered and he is hosting it now.

I am currently looking into how I can configure DNS parameters to do correct forwarding.
I think I need to setup a CNAME record, maybe I need to talk more with my domain name provider?
My games. My Games
My website with coding examples: Unofficial Amstrad WWW Resource

ukmarkh

It's really easy... if I can help in any way, just PM me?

Gryzor

I'm not sure about what kind of forwarding exactly you want to achieve...?

arnoldemu

Quote from: Gryzor on 09:08, 08 March 10
I'm not sure about what kind of forwarding exactly you want to achieve...?

www.cpctech.org.uk -> arnold.cpc-live.com but with www.cpctech.org.uk in the URL.
Then when you click links on the site the URL changes but still based on www.cpctech.org.uk.

At the moment it is a poor iframe redirect and the title/URL never changes.

I think I know what to do now, set a CNAME, remove the A records, and possibly set the DNS to the same as used for cpc-live.com A record.
My games. My Games
My website with coding examples: Unofficial Amstrad WWW Resource

Gryzor

Ah, I thought that was what you were thinking...

Well, we tried to do something of that when we had issues with the wiki domain. Unfortunately, apart from either a lame frame or a server script, it seemed there was not much we could do... It gets worse because the new domain is a subdomain under virtual hosting.

If you find a way, I'd be really interested to know, because we (me and Markus) had looked into it quite a bit and came out empty-handed...

nurgle

Quote from: arnoldemu on 10:42, 08 March 10
I think I know what to do now, set a CNAME, remove the A records, and possibly set the DNS to the same as used for cpc-live.com A record.

Unfortunately that will not make a difference IIRC.

Executioner

#8
Quote from: arnoldemu on 10:42, 08 March 10
I think I know what to do now, set a CNAME, remove the A records, and possibly set the DNS to the same as used for cpc-live.com A record.

So long as you own the cpctech.org.uk domain name and can change the DNS entries, simply set the A record to the same IP address as cpc-live.com. This will work as long as the web server uses only relative page names, which is normally your responsibility when creating the pages. eg.

<a href="docs/schematics/464plus.htm"> rather than <a href="http: //www.cpc-live.com/docs/schematics/464plus.htm">

arnoldemu

Quote from: Executioner on 06:50, 15 March 10
So long as you own the cpctech.org.uk domain name and can change the DNS entries, simply set the A record to the same IP address as cpc-live.com. This will work as long as the web server uses only relative page names, which is normally your responsibility when creating the pages. eg.

<a href="docs/schematics/464plus.htm"> rather than <a href="http://www.cpc-live.com/docs/schematics/464plus.htm">
Ok will do that. I do have control over changing my DNS entries.
And I have always used relative paths since 1995 :)
Most of my pages are coded using a text editor too.. yes I know it shows ;)
My games. My Games
My website with coding examples: Unofficial Amstrad WWW Resource

Executioner

Quote from: arnoldemu on 10:51, 15 March 10
Most of my pages are coded using a text editor too.. yes I know it shows ;)

That's the only way to do it, otherwise you end up with 50 <div> tags per word from Frontpage etc.

arnoldemu

Quote from: arnoldemu on 10:51, 15 March 10
Ok will do that. I do have control over changing my DNS entries.
And I have always used relative paths since 1995 :)
Most of my pages are coded using a text editor too.. yes I know it shows ;)
Ok I had a go at this.

www.cpctech.org.uk->cpctech.cpc-live.com

I can change nameservers and records on DNS but limited.
If I change nameservers, then the "control panel" keeps moaning about the URL not being on their servers, and I can't use CNAME at all because that must point to an A record on the DNS that is holding my records.

If I setup an A record, it points to their server, which then does a webforward to cpctech.cpc-live.com.
I have the option of framed or not. If not framed, then the destination address replaces mine.

Ok cpctech is a subdomain. So the only solution may be this:

www.cpctech.org.uk A <ip for cpc-live.com>
then on cpc-live.com I add a htaccess with a Apache Rewrite rule to redirect it to cpctech.cpc-live.com!!!

Phew

That so far seems to be the only way unfortunately that means markus has to allow his htaccess to allow the rewrite!
My games. My Games
My website with coding examples: Unofficial Amstrad WWW Resource

arnoldemu

Markus and I came up with a solution.

In the end, we used a web based forwarding method that puts the new contents in a frame.
Markus modified some web pages to use <base> and to point to the frame.
Now they are working nicely.

The A record is on the DNS which has my domain name, this then points to the local webservers which do a forward.

I had to use their nameservers to make it all work.
The request is forwarded to Markus's server, and the <base> tag sorts out the url.
Other methods could work (e.g. Apache's RewriteRule)... but at the moment this works fine.

Note www.kjthacker.f2s.com will soon go. Please use links to www.cpctech.org.uk which should always work.. thanks
My games. My Games
My website with coding examples: Unofficial Amstrad WWW Resource

Powered by SMFPacks Menu Editor Mod