Subdomains and 1and1 hosting - hosting

Good morning,
I've recently taken over a website for a friend and am trying to create a new subdomain on their 1and1 host to add new content. For example, they have www.bar.com registered and pointed to their 1and1 host and it works fine. We now want to add www.foo.bar.com that will display different content than www.bar.com. I have spent two days muddling through the 1and1 administration trying everything I can think of to get this to work and so far, no dice. Is there some magical step that I'm missing with 1and1 to get this to work?
In addition I tried adding a new folder so that it would instead be www.bar.com/foo and that delivers a 404 (which I find extremely frustrating as I've done that with other hosts). Is there something magical that needs to happen with 1and1 to get that to work?
Any help/suggestions would be MUCH appreciated as I've spent two days fighting with this now.
Thanks!

From your question it seems that you are not able to find proper options of doing it in their control panel. The best way is to create a support ticket with them. They also must be having some kind of knowledgebase ( all hosting provider does ) which can help you

Related

Redirect all requests from xyz.herokuapp.com to new provider

I have moved a website from heroku to another provider. Lets say its custom domain is www.mysite.org. It was also at mysite.herokuapp.com, although we never really used that domain, Google has indexed some pages there. I want to redirect any requests mysite.herokuapp.com/[EVERYTHING] to www.mysite.org/[EVERYTHING]. The paths are otherwise compatible. I am told Heroku does not allow you to use an .htaccess file. I've deleted the mysite project on Heroku but could create a new one thats a simple php page or something else?
I'm sure this has been asked before, i've looked but find either too little or too much information and none seems to answer my question. Thanks.

Laravel XML sitemap, location, shared hosting

I've uploaded a Laravel app, to a shared hosting provider (I know it's not the best, but it's for a local charity and everything needed to be free) The hosting is actually not bad, they allow SSH and I've managed to get Composer and Artisan running through PuTTY.
I followed the steps, for shared hosting uploading a Laravel app,, everything is running fine, so far.
I've been trying to upload a sitemap, to Google, but I keep getting a not found error. I've had the file in the root, the public_html and the folder that contains the logic, in my case wmcc.
None of these seem to work. I've generated my sitemap, in Screaming Frog, although I have used a couple of online ones, too. I've set my robots.txt file, I'm just out of ideas, where to place the xml file, if anybody can point me in the right direction, please? thanks

Hostgator Addon Domain Redirecting to Primary Domain Subdirectory

This is for a client so I won't share exact domains but the problem is as follows..
I took over development of a website from a prior developer.
The hosting is Hostgator Business.
The primary domain is primary.com.
There is an addon domain addon.com.
The primary domain document root is /home1/username/public_html.
The addon's document root is /home1/username/addon.com.
www.addon.com had a WordPress installation which the developer had edited instead of using plugins to achieve his goals. The site also needed a complete redesign so I felt it logical to simply wipe the installation and replace it.
So, I deleted all of the WordPress files and uploaded a new copy of WordPress from wordpress.org/latest.tar.gz
Prior to deleting the old installation, the domain loaded files from it's document root perfectly.
After uploading the new installation instead of resolving to addon.com it is instead resolving to primary.com/addon.com
I've never seen this happen before so I'm lost.
There's no errors in any available logs.
All file permissions are correct.. I've triple-checked.
I've tried deleting all files and creating simple index.php and index.html files to see if it would access them ... it doesn't.
This happens in each browser I use on Windows and Linux.
I don't understand it because all I did was swap out the old WP install for a new one.
I went and re-uploaded the old WordPress installation so everything is 100% how it was but it is still going to primary.com/addon.com instead of addon.com.
Has anyone faced this issue before? I usually use Bluehost but even when I've used Hostgator in the past I've never seen this happen.
I double-checked the addon domain settings as well as anything else I could think of and everything appears normal.
I even deleted the addon domain and re-added it with the document root of /home1/username/addon.com and it still goes to primary.com/addon.com in the browser.
I submitted a ticket with Hostgator but they have not replied yet.
I'm sorry if this is long. This is my first time asking for help on here and I wanted to be sure I included everything I could.
Hostgator finally got back to me.
The previous developer had used the one-click WordPress install.
Apparently once someone uses a one-click install the only way it works is if you keep using the one-click install/you cannot do it manually any more.
From all the servers and sites I've setup this makes no sense and is a problem with Hostgator. Support did not really tell me anything other than "you have to use the one click install since the prior developer did". Great service.
Hope this saves someone some hassle.
From this it sounds like you were moving a WordPress site from the primary domain to an add on domain.
Simply moving the files from the primary to the add on domain will not make it work on the add on domain because in the database and throughout the coding of the WordPress site it would all be configured and coded for the primary domain.
It sounds like you would need to update the site home and site url from the primary to the add on domain url.
http://support.hostgator.com/articles/specialized-help/technical/wordpress/wordpress-home-fix
Also I would be suggest using a search and replace type plugin to go through all the internal coding to update the urls and links to the add on domain.
There is more information here as well http://codex.wordpress.org/Moving_WordPress

A Downloaded Codeigniter site from FTP not working on XAMPP or WAMP localhost

my very first post to the forum.. Only due to the fact I've just started a new Job in development and I've spent over xmas trying to get this to work! The job requires me to carry on with JQuery & PHP with the ongoing project - but done offline(localhost) in wamp or xammp and not 'live' as you call it, its already an 8 months project so ideally this does need to be setup like this as I've just started.
I've looked everywhere, I've tried playing around plenty with the .htaccess file, config, checked database, checked routes. Everything on stack overflow.
Now, when they let me try this on my personal server (1and1) to see if it all worked when I copied there ftp files to mine - IT WORKED! But in XAMPP or WAMP it doesn't, for starters it said missing 'MY_CONTROLLER' class which I fixed, it does seem to work when I changed
How come this is working on 1and1 but not on localhost(XAMPP/WAMP) etc?
Please be aware, I have looked everywhere for a solution. All I can think is PHP versions & tweaks on the server installation? Any help would be great, I've been tempting to post for the last week!
UPDATE: I forgot to mention, I followed a tip on here regarding the .htaccess file, it got me to land on the home.php but it wasnt displaying any views, so I changed the < ? tags to < ? php and just gave me a lot of errors, before that all it was displaying its just plain HTML and no CSS with load->view-> everywhere
SOLVED - I created a virtual host and set up windows hosts with the same domain e.g 127.0.0.1, basically what Riggs said so if anyone else is having trouble see his link - and read carefully! Should of put this sooner so sorry - I'm new

Subdomains with CloudFlare

I'm using CloudFlare in my website and it works perfectly. Problem is, I decided to host my static files like JavaScript, CSS, etc. in static.example.com and I don't know how to set up the subdomain.
I already tried adding a CNAME record (static is an alias of example.com) and it didn't work, and as a A record (static points to IPAddress) where IPAddress is the IP address that both www and example.com use.
I'm I doing something wrong? I've waited about an hour for any DNS propagation problems and still doesn't work.
If you have added the subdomain in your CloudFlare DNS settings (settings->DNS settings), then it should start propagating out after a few minutes or so. If you're still having issues with the subdomain, please contact CloudFlare with the domain name so we can look at it.
I had the same issue until I realized I had to click on the greyed out cloud on that row to activate Cloudflare on the subdomain. This is what it currently looks like:
The instructions at the top of the page clearly say you have to do this, but I'm not one of those read the manual types for simple tasks. I guess what would have really got the point across was some sort of notice the very first time I added a subdomain on my account.
Once you've clicked the icon, then the activated proxy will be indicated like this:
Oh well, hope this helps somebody else.

Resources