How to change wordpress domain name when site has asp.login page for portal in a separate directory? - asp.net

My client wants to change his Wordpress site's domain name (from info.safetyalert.com
to safetyalert.com).
On the server there are two directories: info.safetyalert.com
(where the user is redirected when they type www.safetyalert.com into browser) and
safetyalert.com, which contains the old site which is not rendered with the exception of a login.asp page for customers that directs them to a "non-Wordpress" portal for submitting reports which is in turn linked to a database (you can see the Login link at the upper right hand corner when accessing the Wordpress home page).
My question is: In which files would I need to edit to make safetyalert.com permanent (and not changing to info.safetyalert.com in the address bar) when users goto the Wordpress site, but without affecting/crashing the login.asp page and the database in the other directory?
My previous attempts have resulted in a loop. I can provide additional info if needed. Any help is greatly appreciated!

login to admin panel of http://info.safetyalert.com/, and go to Settings > General, then change the URL (ie from http://info.safetyalert.com/ to http://www.safetyalert.com ), then you problem is solved.

Related

Website is showing another website on non-existent website page

This is a peculiar one.
I work for an agency, and we develop WordPress and JAM Stack sites for our clients.
I have been contacted by the IT team for one of the clients (an NGO), and they flagged something that I have not seen before.
NOTE: I am going to be using example.org as the website, to protect the identity of the client.
Basically, we developed a WordPress site for them, which works great and all, but as it turn outs there is a page on the website which points to a totally different website
The example page is as follows
example.org/news/points-to-different-website/
The news page doesn't exist in anywhere on WordPress system, and neither does it exist as a custom post type.
And another thing, I noticed is when I removed the / at the end of the URL, it shows the custom 404 page developed for the website
example.org/news/points-to-different-website
But as soon as you add the /, it shows a totally different website.
I have checked all the Apache configuration files related to the site, and it is just the normal setup for any WordPress site.
So, I am wondering what could be causing this, and how can one prevent it?
That's a strange issue. Does example.org/news/points-to-different-website/ actually redirect to another full URL, i.e. differentwebsite.com, or is the different site actually at example.org/news/points-to-different-website/?
Try
emptying the trash for both pages and posts, as there could be a conflicting slug that is causing a redirect.
Reset permalinks.
Using PHPMyAdmin, search the database for the URL points-to-different-website and see if there is malware or some kind of a redirect, an iFrame, etc.
This can sometimes happen if the server hostname is not set up correctly.
What can happen is website on the server will show in place of a non-existent site or page from another website on the same server.
If you are using a reseller hosting/shared hosting, then the site could be from another account on the server, the site could also be from another server, for example:
There are 2 servers with the hostnames serverone.myserver.com and servertwo.myserver.com... A site on serverone might show in place of a site or page on servertwo.

Wordpress and temporary access url

I hope everybody is well.
I have to set up a new Wordpress site, but this is the first time I need to setup the website "before" the domain name is registered.
I have webspace on shared webhosting and I can setup the Wordpress site using a temporary subdomain for my shared hosting, but this will mean setting up the Wordpress site using the temporary access url instead of the proper domain name that will be done next week.
If I setup the Wordpress site using the temporary url, once the domain name is registered, is simply changing the website address in the Wordpress General settings adequate or will I need to update the database too?
Is there a plugin that will do the above?
Thanks in advance if anyone can assist.
AH
You can proceed and start setting up your WordPress site to start designing, ones you've completed and domain name is registered like you've said, you can:
Backup your File Manager files to a local storage Highlight the content, right click, and click compress then download.
Navigate to the root folder of the now newly registered domain(public_html), and upload the files you downloaded above.
Go to the wp-config.php file, highlight and select edit.
Just before a line with this words /* That’s all, stop editing! Happy blogging. */
Add the lines below then save and close.
define('WP_HOME','http://example.com');
define('WP_SITEURL','http://example.com');
example.com is the new domain.
Now go back to your WordPress site to update the links. Yes, their is a plugin to update links, a lot of them but search for 'Velvet Blues Update URLs' using the plugins-> Add new.
After installing and activating the plugin,go to Tools -> Update urls, enter your old (subdomain) and new (root domain) URLs and in Step 2, check all options except Update All GUIDs.
Click the Update URLs Now button to proceed.
Check out under FaQs of your hosting provider if they've indicated a method on how users can move sites from subdomain to main domain.

every time i want to access my WordPress website it redirect automatic to admin panel what should i do?

i am working on a website using local xamp server. how can i access my work because if i hit URL like localhost/WordPress or localhost/WordPress/wp-admin in these both case there is only admin panel not original website.
If you want to access the front end of your website from admin panel you simply go to the top left corner of your admin panel. There you'll find your website name and If you click the name, it will redirect you to your site.
hope this helped :)

Wordpress - after upload on server 404 on all pages, no css

I have developed a wordpress based site using xampp 1.8.3. On my local machine all is wordìking fine. On the server I am using php 5.4.12.
On the server I copied the site on a subfolder name site, wich is the same subfolder name I had in xampp/htdocs. Then i changed all occurances of localhost to mydomain.com with the searchreplacedb2.php script (http://interconnectit.com/products/search-and-replace-for-wordpress-databases). I am confident that the tool is working properly and the issue does not depend on it as I have used it several other times with succcess.
Therefore since on my local machine the site was in localhost/site, on the hosting server is on mydomain.com/site.
The proble is that accessing the site home page produces a wordpress managed 404 page with no css being loaded. The title, menu and other site specific text is displayed, therefore the db is being read correctly. Trying to access any page other than the home page gets a webhost managed 404 page. This happens also if I try to access page through non symbolic urls, ei. mydomain.com/site/?page_id=5; therefore it is should not be a redirection issues.
what can be the issue? How can I proceed in troubleshooting it?
Thanks, in advance for your time.
You need to double check everything, first:
Flush the rewrite rules by visiting settings->permalinks then try your pages. Then try:
List item login to phpmyadmin for each domain, check out the database... options table... verify the "siteurl", and "home" columns. make sure they match the respective domains. Then try:
List itemCheck the DNS zone template. Could very well be possible DNS conflicts.

Changing landing page of website hosted on sharepoint

I have a collection of sites hosted on sharepoint and I'm trying to change the welcome page from pages/default.aspx to one of the site's pages/default.aspx. When I try to do that normally, I get an error saying:-
The specified welcome page is not valid or does not exist within the current site.
I read up on it and found that this can be resolved by copying the default.aspx page from that site's pages to main pages folder. However, I get an error:-
You may re-try the operation, and you may need to clean up the half-created data first before re-trying.
I cannot find the place where publishing can be enabled which has been suggested as a resolution to this error.
Can someone help me and tell me how I can resolve this issue?
a sub site page cannot be converted into a landing page directly. The workaround that I used was to create a redirect page in the main site and make it the landing page. The users can then be redirected to the subsite page once they land on the redirection page.

Resources