网址的内容在Wordpress的网址B上可用

How to make content of this URL:

http://www.test.com/category/kariera/

available on this URL:

http://www.test.com/kariera/

in wordpress mod_rewrite?

I think you refer to Apache mod_rewrite (wordpress running on apache server),with apache mod_rewrite

Configure your vhost.conf as this:

RewriteEngine On
RewriteRule ^category/kariera/(.*) http://www.test.com/kariera/$1 [P,R,L]

I think I do not forget anything.

  • the P means Proxy (the request will be redirected without showing it.
  • the R means Redirect (the request will be redirected)
  • the L means Last (this one will be the last processed rule for request )

Check apache.org docs where they fully explain this.

Hope to help you!!

EDIT

Just forgot to tell you that an .htaccess in the original directory with the Rewrite code, will be the same (sorry by my server has multiple vhosts and we do config there)