I changed the permalinks from %post_name% to /%author%/%post_name%/
Now the old website addresses don't work.
How do I redirect old %postname% addresses to /%author%/%postname%/ ?
Now I want use /%author%/%postname%/ but old adrress must works too.
I searched for a solution using Google search, but I didn't find an answer.
To redirect the old URLs with the %postname% permalink structure to the new URLs with the /%author%/%postname%/ permalink structure, you can use a plugin such as Redirection or Simple 301 Redirects
Related
I have a website running wordpress with some good amount of posts.
For a specific reason, i setup my wordpress permalinks structure to /%post_id%/%postname%/
Now i want change my permalink structure to /%postname%/ for supporting a plugin Category Subdomain Pro
When i change the change the permalink structure, new links are working but i am getting a 404 error for old urls.
So, i am thinking about redirecting old urls to new urls.
If you know anything about this, please share something and help me resolve this issue.
Sorry for delay, Check this out... Before # BEGIN WordPress in .htaccess file put this code...
Redirect 301 /post_id/postname/ http://example.com/postname/
just replace post_id,postname to your website posts id and post name. Replace example.com with your website name and postname with your postname.
replace for every single post
or you can use plugin Redirection
I have a Wordpress blog in which I want to rewrite the post titles. The problem is that the permalinks will change, since they're based on the title, and inbound backlinks that reference the url that was created from the original title won't work.
What I need to do is rewrite the titles, but then create pages with the original permalink urls that redirect the reader to the new title, so that backlinks keep working.
Any ideas how to do this?
The best way I can think to do it is to add rules to your .htaccess or vhost file for Apache (or whatever http server you are using).
You can find many examples on the web using mod_rewrite.
Redirecting and Remapping with mod_rewrite
Doing a quick Google search on "wordpress permalink redirect" also turns up many result so how to handle this type of issue.
I want to change my old domain name to new domain. What I ask here is how to redirect permalink structure with htaccess from
http://www.OldDomain.com/postname/ to http://NewDomain.com/postid/postname/
/%postname%/ /%postid%/
Straight answer is NO, you must not do this via .htaccess.
Wordpress already supports (and enforces) this permalink structure so it is much better and cleaner to goto Wordpress admin panel and change the permalink structure to /%postid%/%postname%/ in the newer installation of Wordpress.
PS: Note that even if you rewrite these URLs differently via mod_rewrite, WP will enforce and expect this to whatever is defined in it permalink definition.
I'm changing my URL structure from domain.com/postname to domain.com/type/postname
What's the best way to redirect? I tried using the Redirection plugin, but it seems that I need to redirect each URL manually. Is there any way to redirect all the posts at once?
Go to the wp-admin's dashboard using domain.com/wp-admin. Then look for the Settings-->Permalinks option. From this page you can change the URL settings for all of your posts.
Here are some instructions on how to redirect your sites url.
Changing the site url
Back up your site first if you still can? When I changed to pretty permalinks I had to include a forward slash to custom field images.
from: wp-content/uploads/2012/08/tulip-813-01.jpg
to: /wp-content/uploads/2012/08/tulip-813-01.jpg
I was using the following permalink structure on my wordpress blog previously
http://domain.com/some-text-missing.html
Now I have changed the permalink to
http://domain.com/archives/2010/09/some-text-missing/
The tag structure is
http://domain.com/archives/tag/sometag/
I am using the wordpress redirection plugin and I am stuck with the regular expressions.
I don't know about the plugin you are using, but if there are not to many sites, i would do the redirects directly in .htaccess like this:
Redirect 301 /some-text-missing.html /archives/2010/09/some-text-missing/
you can't use here a regex because the new url structure has a new variable: the year/month. so regex wont know where to redirect your users. I don't know about your plugin, but i would write it myself, I would read the file name "some-text-missing" then search for it in the database and if found redirect to the new url.