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/
Related
I created a new website in Wordpress and I need to 301 all the old URLs to new pages on the new site. Site URL: georgiapivots.com here Old site can be found here: http://georgiapivots.tldealers.com/ please let me know How to get started
You could try the Wordpress plugin Simple 301 Redirects for this. Alternately, if you're on an apache environment you could add the following to the .htaccess file in the root directory of your old site:
Redirect 301 / http://georgiapivots.com/
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.
My work has recently converted their website to run on Wordpress. The old website was made in ASP. Our marketing department have advertised a specific URL for an event, but now that URL has changed.
The old URL is: /who-are-you/stem-intro.aspx
The new URL is: /stem2014/
Can I used my htaccess file to make the first URL go to the second url without an .aspx file existing?
Thank you for your help.
Yes you can use this rule on top of your WP .htaccess (just below RewriteEngine line):
RewriteRule ^who-are-you/stem-intro\.aspx$ /stem2014/ [L,NC,R=301]
Can be performed easily with a 301 redirect in .htacess, especially if this is a one off thing
Redirect 301 /who-are-you/stem-intro.aspx http://www.YOURSITE.com/stem2014/
I've recently deployed a new Wordpress site that was replacing an existing site. So I've set up a whole bunch of 301 redirects in the .htaccess file.
I'm having troubles with one particular redirect though:
Redirect 301 /images/ http://domain.com/
I seem to have no trouble with any other redirects using exactly the same syntax. Could the 'images' directory be some sort of reserved word somehow? Not even sure where to start troubleshooting this!
Any ideas?
We need to redirect everything from an old domain to a specific page on the new domain.
Our .htaccess looks like this:
Redirect 301 / http://www.example.com/specific-page/
Problem is that it doesn't work. When we go to the old domain, we are redirected to http://www.example.com/ and not http://www.example.com/specific-page/
Any idea how we can fix this?
Thanks,
Louisa
An option is to use php and redirect with the code below. Place it at the top of the index on your old domain. If you could paste the headers that would help us debug the problem.
header("Location: http://www.example.com/specific-page/",TRUE,301);