Well I cant think of a quick way of doing besides installing a plugin and do each manually.
http://wordpress.org/extend/plugins/custom-permalinks/
or another way is to make categories NEWS, ABC, ect..
Then post your posts under the category you want and change your permalinks to
/?p=%post_id%
What I basically meant was to update my Site Domain URL and just add a /myname/ to it.
So if my site now is http://www.mysite/abc/
I want it to be http://www.mysite/NEWS/abc/
This is for every link, post, and everything on my site.
Please help!
Quick way then is to add what you want /NEWS/ at the beginning of custom permalinks.
Nopes, it didn’t work.
Is there a way, that I can do it through Code.
I don’t want to change my Site URL which is already fine as http://www.mysite/news/abc/ . I am using Domain Mapping.
It’s just all the links in my site are without /NEWS/. They are appearing as http://www.mysite/abc/. I just want to make all my links as http://www.mysite/NEWS/abc/ and I am looking for a solution to do it through code.
Best
You can use the query function of the database with what ever tool your host provides to access the db.
For post content
update wp_posts set post_content= replace(post_content,’http://www.oldsitename.com/abc’,’http://newsitename.com/new/abc’)
For post meta
UPDATE wp_postmeta SET meta_value = REPLACE (meta_value,'http://www.oldsite.com/abc','http://www.newsite.com/news/abc');
Make sure you have a good backup or two.
Hi Kmessinger,
Would you be so kind to elaborate the query function of the database part?
I’d be very thankful if you can tell how can I manipulate the URL through WP query function?
Thanks.
When you open your db, one of the top tabs is query. That will get you to the query menu. There is a place to insert the query.
I am not a SQL person at all so I can’t go much further. Here is a link with more information, http://www.rsatechnologies.in/best-sql-queries-for-wordpress-administrator.html