wordpress - Redirect with .htaccess without changing URL in address bar -


this question has been asked before, i'm not getting expected results following solutions in there.

i need make redirect .htaccess without changing url in address bar. is,

www.mydomain.com/en-uk 

should redirect

www.mydomain.com/en  

but address bar should still display

www.mydomain.com/en-uk 

i've tried few things no matter how url changes redirected path. of now, have this:

redirectmatch 301 /en-uk/(.*) http://www.mydomain.com/en//$1/ 

also, should noted site uses wordpress. ideas?

try:

rewriteengine on rewriterule ^en-uk(/.*)?$ /en$1 [l] 

Comments

Popular posts from this blog

php - regexp cyrillic filename not matches -

c# - OpenXML hanging while writing elements -

sql - Select Query has unexpected multiple records (MS Access) -