PaulRyan Posted July 3, 2011 Share Posted July 3, 2011 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. Quote Link to comment Share on other sites More sharing options...
QuickOldCar Posted July 3, 2011 Share Posted July 3, 2011 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] Quote Link to comment Share on other sites More sharing options...
QuickOldCar Posted July 3, 2011 Share Posted July 3, 2011 I should also mention this should be above if not already there. RewriteEngine On Quote Link to comment Share on other sites More sharing options...
PaulRyan Posted July 3, 2011 Author Share Posted July 3, 2011 That suggestion was thrown my way from a friend, but it was to no avail. I have just remembered that I am currently changing DNS Name Servers, will that be the issue? Regards, Paul. Quote Link to comment Share on other sites More sharing options...
QuickOldCar Posted July 3, 2011 Share Posted July 3, 2011 did you restart apache after the change? Anyway, in your panel is also ways to handle the www and also any wildcards for subdomains using a * Quote Link to comment Share on other sites More sharing options...
QuickOldCar Posted July 3, 2011 Share Posted July 3, 2011 It works now paul, just saw it redirect me to no www. Quote Link to comment Share on other sites More sharing options...
PaulRyan Posted July 3, 2011 Author Share Posted July 3, 2011 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 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.