Jump to content

1 Domain name, 2 Different websites?


PaulRyan

Recommended Posts

I have the domain name www.paulryanmc.co.uk, and if you use that specfic text in the address bar, you are directed to my personal portfolio, but if you drop the www. and just use paulryanmc.co.uk you are directed to my lastest project, which is actually what I want it to do.

 

Can any one explain why this is happening? and possibly let me know how to get both to show my latest project?

 

Regards, PaulRyan.

Link to comment
https://forums.phpfreaks.com/topic/240992-1-domain-name-2-different-websites/
Share on other sites

www was an oldschool way thsat browsers needed to access urls, meaning "world wide web"

 

it's actually considered a subdomain

 

in htaccess do a rewrite rule

 

RewriteCond %{HTTP_HOST} ^www\.paulryanmc\.co.uk$ [NC]
RewriteRule ^(.*)$ http:/paulryanmc.co.uk/$1 [R=301,L]

 

Luckily for you, I still see that crappy error page from 000webhost for http://www.paulryanmc.co.uk

It's stuck in an endless loop for http://paulryanmc.co.uk

 

If it's working for you, then it isolates the problem, which is me :P

I've been told to clear my DNS cache and a few other things to try out, I'll see how it goes and report back, if you have any other suggestions just let me know, thanks for your help so far :)

 

Regards, PaulRyan.

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.