is it possible to create a 301 redirect for the following URL string:

Original URL: http://www.example.com/old/old-directory/blog-post-1.html

Desired destination URL: http://www.example.com/new/new-directory/1.html


Using a mod_alias Redirect in your root .htaccess file:

Redirect 301 /old/old-directory/blog-post-1.html /new/new-directory/1.html


Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.