Results 1 to 2 of 2
  1. #1

    mod_rewrite gurus please help!

    I am moving my Xenforo installation from the document root to /community and I don't want to lose any links.

    I've tried many different ways to do this using .htaccess and mod_rewrite but it seems I can't figure it out.

    what I need is anything going directly to the document root (/) to be left alone. For example, will not forward.

    Anything going to /forum to be forwarded to /community/forum
    Anything going to /threads will forward to /community/threads
    Anything going to /pages will forward to /community/pages
    Anything going to /events will go to /community/events
    Anything going to /media will go to /community/media
    Anything going to /members will go to /community/members

    So, for example, if the user has a saved link to:
    It would redirect to:

    I've been pulling my hair out on this one and really appreciate any help.

    I believe I can figure the rest out if someone can help me with 1 redirect.
    Last edited by sifuhall; 06-14-2011 at 01:28 PM.

  2. #2
    I have a good start:

    Options +FollowSymLinks
    RewriteEngine On
    RewriteRule ^(forum|threads|pages|events|media|members)/(.*)$ /community/$1/$2 [NC,L,R=301]
    Now I need to understand how to redirect anything to / that does not request a specific file.

    For example: would not be redirected because it asks for index.php would be redirected.

Similar Threads

  1. To all you Kayako Gurus out there!
    By sallyanne in forum Hosting Software and Control Panels
    Replies: 9
    Last Post: 08-20-2008, 03:31 AM
  2. Flash Gurus?
    By zaz965a in forum Web Design and Content
    Replies: 0
    Last Post: 05-31-2008, 08:15 AM
  3. gurus, do you think it is possible to do that?
    By coume in forum Programming Discussion
    Replies: 8
    Last Post: 05-17-2004, 10:31 AM

Posting Permissions

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