url rewrite

Discussion in 'Admin Talk Support & Feedback' started by kev, Mar 9, 2009.

  1. kev

    kev Regular Member

    Joined:
    Mar 9, 2009
    Messages:
    1,224
    Likes Received:
    61
  2. Nick

    Nick Regular Member

    Joined:
    Jul 27, 2008
    Messages:
    7,444
    Likes Received:
    219
    Thanks for the suggestion, Kevin.
    We actually do have this in place for the root domain. When you visit adminaddict.com, it redirects to the www version.

    But it doesn't work when you visit adminaddict.com/forum.

    This is what is currently in the .htaccess file:
    Code:
    RewriteEngine On
    RewriteCond %{HTTP_HOST} !^www\.adminaddict\.com [NC]
    RewriteRule (.*) http://www.adminaddict.com/$1 [R=301,L]
    Perhaps I just need to add:
    Code:
    RewriteEngine On
    RewriteCond %{HTTP_HOST} !^www\.adminaddict\.com\[B]forums [/B][NC]
    RewriteRule (.*) http://www.adminaddict.com/[B]forums/[/B]$1 [R=301,L]
    ??


    Thanks! :)
     
  3. kev

    kev Regular Member

    Joined:
    Mar 9, 2009
    Messages:
    1,224
    Likes Received:
    61
    Are you using the automatic media embedding modification for youtube videos?
     
  4. Nick

    Nick Regular Member

    Joined:
    Jul 27, 2008
    Messages:
    7,444
    Likes Received:
    219
    No we are not.
     
  5. kev

    kev Regular Member

    Joined:
    Mar 9, 2009
    Messages:
    1,224
    Likes Received:
    61
    You might have to add that to your htaacess file, but the settings in root file should go to the subfolders

    The AME modification has a problem with rewritting your sites url, that is why I asked.
     

Share This Page