Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
  1. #1
    Regular Coder
    Join Date
    Jan 2009
    Posts
    156
    Thanks
    47
    Thanked 0 Times in 0 Posts

    Why is this htaccess redirect not working??

    What if I wanted to redirect any request such as:

    /demos/
    /demos/files
    /demos/index.php
    /demos/files/index.php?action=Register

    ..to the new directory?...So that ANY request to ANYTHING in /demos will be re-routed?

    -------------

    ***This works...

    RedirectMatch 301 ^/demos(.*)$ http://www.mydomain.com/new_dir
    Last edited by Daniellez; 01-05-2009 at 08:12 AM. Reason: Found the answer..yay! :)


 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •