Change domain name on existing WP site - html

I recently had a developer populate a WPLMS site for me hosted on my HostGator account.
www.midwifecafe.co.za
I did explain at the time that I wanted the site developed my main url
www.midwifecafe.com
I would then simply setup a re-direct from the .co.za to the .com domain.
The site was developed on the .co.za url and the developer now tells me he cant manage to have the site hosted on the main .com url
He now left high and dry, he's been paid and wont help anymore.
I am unsure what to do? Is this a problem or something I can resolve?
Would appreciate any advice.

First of all, that developer is a jerk. This should take him 10 minutes max to do, assuming he knows how (he probably doesn't). Sorry for your bad experience.
The ultimate answer depends on a few things, like how your site is setup, etc. However generally, one of my favorite tricks for this is a little script called Search Replace DB --https://github.com/interconnectit/Search-Replace-DB.
Here's what you do:
BACKUP EVERYTHING. Yes, EVERYTHING
Move your site files to the new host, where the .com version will live.
Move your database to the new host
Edit your wordpress site's wp-config.php file to use the new host database information for dbname, user, password, and server (probably localhost on Hostgator).
Upload the search replace db folder to the root of wordpress, then access the folder in your web browser. Follow the prompts to fill in what you want to search for (www.midwifecafe.co.za) and what you want to replace it with (www.midwifecafe.com). If you're not familiar with Github, you can download the search replace script here: https://github.com/interconnectit/Search-Replace-DB/archive/master.zip, which you'd then upload to your server in it's own folder and unzip it
If you run into issues, first you have a backup (see step 1), secondly you can run through their github page for tips and help.
Once the search and replace for the domain name runs successfully, you'll want to do two things.. DELETE THE Search Replace FOLDER. This is super important. Leaving it there is a big-time security risk. And lastly, you'll probably need to login to WordPress admin and visit the Settings > Permalinks page to generate the proper URLs on your new host.
Hopefully that's some help! Good luck!

I would then simply setup a re-direct from the .co.za to the .com
domain....
Doesn't work that way with WordPress. But it is straightforward to move a WordPress site from one domain to another; it involves changing the URLs in the database. That's the most critical part.
But a move may also involve moving files at your host (this depends on your hosting setup) from one folder to another; you didn't say if you are staying on the same host or moving to another host at the same time as the domain change
Read the official docs Moving WordPress « WordPress Codex and take a look at WordPress Serialized PHP Search Replace Tool, which it sounds like you will need.

I think from your question which was not completely clear, that you want to me your wordpress website from one domain to another.
If so you can do the below manually:
Download all the files from your old domain
Upload the downloaded files onto your new domain
Export database from old domain account.
Go to new hosting account, create a new database with username and
password.
Open up PHPMyAdmin and Import the database that you exported into
the newly created database.
Open up phpmyadmin an and go to the wp_options table. Replace the
site url and home url rows with your .com domain address.
Then open up SQL option in phpmyadmin and run the following:
UPDATE wp_posts SET guid=REPLACE(guid,'www.midwifecafe.co.za','www.midwifecafe.com'); UPDATE wp_posts SET post_content=REPLACE(post_content,'www.midwifecafe.co.za','www.midwifecafe.com');
Now open up your wp-config.php file in ftp and edit it to suit the
new database name, username and password. For additional measures
you can also add the below to wp-config.php:
define('WP_HOME','http://www.midwifecafe.com');
define('WP_SITEURL','http://www.midwifecafe.com');
Check your .htaccess file and make sure there is no mention of your
old domain.
Now run your website and see if that fixed your issues.

Related

How to disable parent directory access in web file browsing without web server

I am writing a command line application that produces an index.html with links to other generated HTML files, but also some links to filesystem subdirectories. Here is an example of such a link:
Invoices
The intention for sharing this content is for the user to zip up the directory tree and send it to other parties for review. However, some users might think to use ngrok, or use screen sharing, to share their web browser to allow other people to access their local system. With ngrok they would be running a web server and might be able to configure the web server to protect against this, but with screen sharing that would not be possible. (Consider the case where a user might leave their web browser open to the remote user and step away, not realizing that the remote user can now examine their entire filesystem.)
The problem is the "Parent Directory" links. Using those links, the others could navigate above the intended directory root and navigate their entire filesystem. Here is an image to illustrate:
The directories linked to can have arbitrary numbers and levels of subdirectories, so hard-coding links on custom pages would probably be prohibitively complicated.
There is no web server involved here; the files are displayed by just opening index.html in a web browser, so .htaccess is not a solution. Also, I don't want to disable navigation, I only want to limit its upper bound.
Is there a way to prevent this access?
If there is no web server involved at all, there is no way to prevent that behaviour.
Edit:
You could of course write a browser plugin that limits the access to the parent directory using JavaScript. But every client would have to install that plugin.

Google Sites HTML export keeps redirecting to live site

I was trying to export a Google Site I made for a project. I used wget to spider through every page and to download the html files and linked content. When I try to open "index.html" in Chrome, it does open the local HTML file, but it redirects me to the live version immediately after.
Is there anyway I could modify the HTML code so that it won't head straight to the actual website? I just want to have a local copy of it for reference, and I don't want to store it on Drive.
As the HTML file is too big to type out, I have provided it on Pastebin here.
.
You need a better question. No website works offline, or they do if you download all the files to your user’s computer so the user can view it offline. But at some point they had to visit it online to get it.
Or you save it as an html site and hand it to them on a USB drive. That’s offline to that extent. But then it’s not really a website, its an html file.
Or otherwise, if you need a website for your school which can be used by anyone through internet / intranet, you have two options -
1. Create and host a website in an online server
. a. You have to buy space and deploy a server yourself.
. b. They will a run website in their webserver for you. You just need to give money
2. Deploy a webserver in the school's any one machine and get it in other machines.
Rephrase the question for a better answer.

private folder beside public_html on 000webhost

I host my website on 000Webhost.
I have to fill all my scripts for my website in the folder "public_html" (Example: /public_html/index.html).
I would like to have a "private" folder on the same level (Example: /private_html/variables.php) like public_html, but where only I can access and place things in it.
Is there any possibility for it or some other host which will support this function?
Private "stuff" is not meant to be on a web server. Create a small app server where you can a have a database and keep its IP private or get some security from the hosting service (better) and connect to it maybe from SSH (PuTTY) and then exchange files over it.
Anyway, a very basic workaround way to implement what you need is something like a PHP script that asks for admin credentials when a page under that folder with a URL(even if someone gets access to it when you would try to keep it private in the first place) is hit. From there, after you get authenticated, you can load the rest of the page using the same script which will basically present you a management tool or UI for yourself...Say if you'd want to upload some files or delete them.

Creating a Copy of SSRS Site

I have a production SQL Server Reporting Services site called http://server/reports.
Now I want to redevelope this, without causing any downtime. I would like to copy the whole site and point it at http://server/reports2.
Here I can change what the user will see before evetually pointing the new site back at http://server/reports.
Is this possible
You can go into SSRS config and choose a new site name. All Programs>SQL Server 2008>Config Tools>SSRS Configuration Manager. It opens up a little admin site>Click 'Report Manager URL' on the left pane provided you have the credentials to get in. You can change your website and web service site here.
However that may wipe out your old site as I am not certain if that would work except for 'moving' a site. If you want two sites you will have to work with 'Scale-out Deployment' most likely which is a different problem all together.

Drupal Editing Tools missing

Went into my site and the site would not load. I had my friend look at the site and here is what he told me.
"I had to upload Drupal core files for version 5 and reconnect everything.
The previous user id’s and passwords should all work, there may be some missing data as I did have to pull one of the database files from back up so the site will have to be checked for integrity/links etc."
After he did that, the page was back up and running but editing tools were missing. In the edit mode, the page only shows html and no visual editing.
I also have not been able to access a page containing a calendar that was there before as a link from the home page.
Here is the URL - www.kntram.com. Any help would be very much appreciated.
The Wysiwyg (or similar editors like FCKEditor and TinyMCE) modules have probably just been deactivated when your friend replaced data in the database.
If you can, go to the Admin -> Site Building -> Modules page and reactivate the module (if it's missing, follow the link to download it, and upload it to the "modules" folder of your website).
If it's already activated, check the roles permissions in Admin -> User Managagement -> Permissions because the role your user belong to simply may not have the permission to use the editor activated.