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
    Oct 2008
    Location
    Poland
    Posts
    382
    Thanks
    150
    Thanked 2 Times in 2 Posts

    .htaccess redirect folder and files to homepage

    Hello, my domain is xyz.com.

    I would like to redirect all the following to the homepage xyz.com:

    http://xyz.com/comments-subscriptions/
    http://xyz.com/comments-subscriptions/dsagas
    http://xyz.com/comments-subscriptions/dsagdsa
    http://xyz.com/comments-subscriptions/whatever

    with or without www

    Do you know what the htaccess rule should look like?

    I am now trying the following:
    Code:
    RedirectMatch 301 comment-subscriptions(.*) http://glamourina.pl/
    But the link
    Code:
    http://glamourina.pl/comment-subscriptions?srp=1586&sra=s
    Gets redirected to:
    Code:
    http://glamourina.pl/?srp=1586&sra=s
    But I would like it to be redirected to the homepage
    Last edited by utnalove; 06-14-2012 at 09:32 PM.


 

Posting Permissions

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