.htaccess - 301 Redirect is not working for Sub Directory and its URLS of Wordpress -


i added 301 redirect site non-www www. working perfectly. now, installed wordpress in www.example.com/directory 301 not working on directory only. as, had many other directories www.example.com/dir1 dir2 dir3 , on. , when added 301 of them working perfectly.

the redirect problem coming directory added after added 301 redirect.

information may need is:- => site on wordpress. => redirect whole site non-www www added code .htacess

rewriteengine on  rewritecond %{http_host} ^example\.com$ [nc] rewriterule ^.*$ http://www.example.com%{request_uri} [r=301,l] 

( working fine! ) => now, directory not working added

redirectmatch 301 ^example.com/technology/.*$         http://www.example.com/technology 

(which expected change internal links of technology , including technology directory redirect non-www www [after reading existing solutions @ stackoverflow] but, not working. )

guide me kindly may correct mistake. looking response. thank you!


Comments

Popular posts from this blog

javascript - oscilloscope of speaker input stops rendering after a few seconds -

javascript - gulp-nodemon - nodejs restart after file change - Error: listen EADDRINUSE events.js:85 -

Fatal Python error: Py_Initialize: unable to load the file system codec. ImportError: No module named 'encodings' -