Jump to content

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.

 

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.