My home page used to be www.example.com/index.html, because I was on the Weebly platform. I then switched to Wordpress, where the home page should simply be www.example.com/home.
However, I realized if I visit the URL on a browser where cache hasn't been cleared for the past 24 hours, the website automatically redirects the user to www.example.com/index.html. Is there a way to fix this? I've Googled ways for about 2 hours and tried various Wordpress plugins...
Create a redirect in your wordpress site from /home.html to /home
Just delete old index.html and add this to your .htaccess file in root
RewriteEngine On
Redirect 301 /index.html http://www.example.com/home
Related
I have a problem with my WordPress site hosted on GCP App Engine. When I try to access the wp-admin page, I first receive a 302 followed by a 301 that redirects me to the homepage.
I have already tried to deactivate my theme and all the plugins from the database, but that has not changed anything. I also added var_dumps to index.php in the wp-admin folder, but none of them are executed because the redirection happens before.
I also deleted my .htaccess file to make sure the redirection is not coming from there. Could you give me some leads to solve this problem? Thank you in advance.
I have a WordPress website and the home page is configured to be the latest posts
What I want is that only the homepage URL that is, e.g. www.test.com redirects to subdomain.test.com and when the user needs to visit the older homepage will only access through test.com/home.
I need this because we will start a campaign in a landing page (subdomain.test.com) today.
But this is only for a few days, it is not a permanent change. How can I achieve this?
you can create a new page in WP where you can redirect to your sub domain.
OR
you can do this to make some changes in .htaccess file
RedirectMatch 301 ^/$ http://newsite.com.in/
add this in .htaccess file
Just added a 301 redirect code inside my htaccess file and now I can't even access my own dashboard for WordPress. It says:
This page isn’t working
website.com redirected you too many times.
Try clearing your cookies.
ERR_TOO_MANY_REDIRECTS
I already cleared everything, even my advanced settings for cache and cookies.
Can anyone help me with this?
I have no ftp access on this also :(
I am trying to add a simple 301 redirect to a website's htaccess, but no redirection is occurring, nor am I encountering any errors--can anyone shed some light? The redirect would redirect people visiting an old blog post to a new page:
old blog post: https://www.horizonhomes-samui.com/horizon-homes-construction/
new page: https://www.horizonhomes-samui.com/construction/
The redirect code I'm using is:
Redirect 301 /horizon-homes-construction/ https://www.horizonhomes-samui.com/construction/
Possibly Relevant Info
My site is a Wordpress site.
I also tried adding a "RewriteEngine On" line to the top, but that did not resolve the issue.
The htaccess file I'm editing is located in my WordPress root directory (along with wp-content, wp-admin, index.php, etc).
The instructions I'm following for adding the 301 redirect are from this guide.
Thanks.
When you don't have a lot of control over the server, which is the case for a lot of wordpress sites, a plugin is better than trying to update the .htaccess file.
I am sure there are a lot of good plugins that do this. This one has worked for us.
https://wordpress.org/plugins/redirection/
With the help of my server admin, I ascertained why this 301 redirect was not working. It is because my site is on an Nginx server, so any redirects added to htaccess will not be read by the server. My server admin was able to add the redirects properly.
I am getting really desperate over here.
In order to make up some SEO I want to redirect my none-www into www site. Of course simple 301 redirect ill d the trick, and it also work.
BUT
What doesn't work, at all, is a wordpress. I have my own VPS, and I am installing wordpress by application manager in plesk panel. But if i activate the htaccess file, wordpress cannot be installed anymore (strangely enough it tells me that mysql extension is not activated) and existing wordpress pages will stop orking with infinite loop error. Once I delete htaccess everything works fine.
Please if anyine has idea how can i redirect and have wordpress at the same, it would me much appreciated
Bypass the problem. Set up a simple example.com domain/site in Apache, and force it to unconditionally redirct to www.example.com. Wordpress would only be active in the www.example.com site's setup, and example.com exists ONLY to redirect to the www version.
That way you're not trying to get your .htaccess stuff to coexist with Wordpress', and the redirection occurs far outside of Wordpress' domain.