php - Content of url A available on url B in Wordpress -


how make content of url:

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

available on url:

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

in wordpress mod_rewrite?

i think refer apache mod_rewrite (wordpress running on apache server),with apache mod_rewrite

configure vhost.conf this:

rewriteengine on rewriterule ^category/kariera/(.*) http://www.test.com/kariera/$1 [p,r,l] 

i think not forget anything.

  • the p means proxy (the request redirected without showing it.
  • the r means redirect (the request redirected)
  • the l means last (this 1 last processed rule request )

check apache.org docs explain this.

hope you!!

edit

just forgot tell .htaccess in original directory rewrite code, same (sorry server has multiple vhosts , config there)


Comments

Popular posts from this blog

css - SVG using textPath a symbol not rendering in Firefox -

Java 8 + Maven Javadoc plugin: Error fetching URL -

node.js - How to abort query on demand using Neo4j drivers -