We have an internal site that we are changing to be publically viewable.
This is the old URL:
http:\\help.internal.mysite.com
and we want it to rewrite to:
https:\\help.mysite.com
So that links in emails will still work. An old URL is like this: http:\\help.internal.mysite.com\article.php?1234
A new site exists for the old url with a static page to show new url for internal users so going to the old page gives a 404 as it doesn't exist.
Will this be taken care of too?
Related
I am new to drupal 8, so probably the question is quite silly. I need to create a home page for the website and it should be accessible by the url example.com (without any routes in url). I created a page, via page manager, called it Home page and setted the path "/home" (why I can't stay it empty?). So, ok, I defined the path to the front page in admin/structure/views/view/frontpage and in /admin/config/system/site-information. It works, but when I access the example.com, for some reason the trailing slash is added. How can I remove it?
I moved domain from http to https. And currently all http urls are redirected to https.
But there are some broken links from old urls such as http://domain.tld/url-link-broken and I would like to redirect them to the root domain.
The problem is that currently http://domain.tld/url-link-broken redirects to https://domain.tld/url-link-broken
How can I change this via htaccess so that if url is broken it would not only redirect to https but also to the root?
Check following things first
Your console gives any error there regarding resources
Check do you have static links in menu or anywhere else
Check your home_url and site_url in admin
Solution
Using Plugin:
Please Take Backup of database before proceed
https://wordpress.org/plugins/ssl-insecure-content-fixer/
For More Information :
https://managewp.com/wordpress-ssl-settings-and-how-to-resolve-mixed-content-warnings
I have WordPress installed and I have some old URls indexed, for example:
http://www.example.com/article-title.html
They were working before, but now I changed my URl structure so if I type in Web browser:
http://www.example.com/article-title/
The new one is working but if I visit my old URL with .html, it gives me error 404.
Is there a way for rewrite those old to new one?
Maybe 301 SEO redirect?
Thanks!
go into your .htaccess on your server and at the top of the file you can add something like this
Redirect 301 /article-title.html http://www.example.com/article-title/
We have an existing Drupal site. That is going to be replaced with a WordPress site on the existing URL. However, there has been a lot of SEO done on the drupal URLs so a google search will return those old URL's. We want to redirect to the new corresponding URL in the Wordpress site. However, since the drupal site is no longer live on the existing domain, the old URL's will just return 404 and cannot be redirected since they are not relative to the WordPress root. Is there a way to do this? Do I need to get those old drupal site URLs into WordPress somehow?
First of all you need to update your sitemap and add canonical's for permanent redirections. This wont directly redirect the page, but will let the search engines know that the url for the page has been changed and hence will avoid loosing your search engine rankings.
Then for actually redirecting the page you will need to update your htaccess
Redirect 301 /folder/oldpage http://www.example.org/newpage
If there are lots of pages you should consider using a wordpress plugin called redirection. This way you dont have to update the htaccess manually, and it will also keep logs of all the 404 pages that users have found, so you can also keep an eye on logs for any missing pages and redirect them accordingly.
I am trying now to move a website to wordpress, my issue that I need to keep the old URLs life as it was, withut any change.
I already have the URLs and each post content inside a DB, and want to rewrite the URL to match the old URLs (it includes sub domains).
What I want to do:
1- Add new field inside the posts table for the old URL
2- Rewrite the wordpress link to match the old URL stored in the DB
example
http://example.com/?p=N
rewrite to
http://sub.example.com/posttitle
So when the visitor trying to access any of the old URLs, can get a result.
Is this possible?