1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.2 Friendly URL help...

Discussion in 'Troubleshooting and Problems' started by JMEWLS, Jul 27, 2013.

  1. JMEWLS

    JMEWLS Active Member

    I've got my forum in a directory "/forums" and I turned on friendly URL's. But now it goes... /forums/forums/[post/thread] how do I turn off the other 'forums' extension.

    Hopefully I explained myself correctly.
     
  2. AndyB

    AndyB Well-Known Member

    Post your .htaccess file.
     
  3. JMEWLS

    JMEWLS Active Member

    Code:
    # Comment the following line (add '#' at the beginning)
    # to disable mod_rewrite functions.
    
    # Some servers require the Rewritebase directive to be
    # enabled (remove '#' at the beginning to activate)
    # Please note: when enabled, you must include the path
    # to your root vB folder (i.e. RewriteBase /forums/)
    #RewriteBase /
    
    #RewriteCond %{HTTP_HOST} !^www\.yourdomain\.com
    #RewriteRule (.*) http://www.yourdomain.com/forums/$1 [L,R=301]
    
    
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    
    <IfModule mod_suphp.c>
     suPHP_ConfigPath /home/***
     <Files php.ini>
      order allow,deny
      deny from all
     </Files>
    </IfModule>
    
    <Files 403.shtml>
    order allow,deny
    allow from all
    </Files>
    
     
  4. AndyB

    AndyB Well-Known Member

    Your .htaccess is much different than mine, although I also use friendly URL's.

    Sorry I don't know .htaccess well enough to make a suggestion, hopefully someone else will.
     
  5. Jeremy

    Jeremy XenForo Moderator Staff Member

    You can't turn off the second forums extension. This is an internal route and required for proper functioning. 1.2 has a route changer where you can modify it, but there has to be something there.
     
  6. AndyB

    AndyB Well-Known Member

  7. Jeremy

    Jeremy XenForo Moderator Staff Member

    Until they explain it further, I can only assume it isn't a double /forums/ everywhere (indicated by the brackets).
     
  8. JMEWLS

    JMEWLS Active Member

    Code:
    http://nbadimensions.net/forums/forums/nba-forum.2/
    that's my forum url when i visit a forum.
     
  9. AndyB

    AndyB Well-Known Member

    That's normal.
     
  10. JMEWLS

    JMEWLS Active Member

    there's no way of removing that extra 'forums' extension?
     
  11. AndyB

    AndyB Well-Known Member

    Nope.
     
  12. Jeremy

    Jeremy XenForo Moderator Staff Member

    See:
    1.2 you can reroute it (ie turn the second forums into "boards" or something), but it cannot be removed.
     
  13. JMEWLS

    JMEWLS Active Member

    How do I change it? Wouldn't mind making it a little more content relevant maybe make it "nba" or "nba_forum
    "
     
  14. Jeremy

    Jeremy XenForo Moderator Staff Member

    The route will be the same for all forums, you can set a specific URL (ie just announcements without a number) in the node settings. As for route filters:
    http://xenforo.com/help/route-filters/
     
  15. EQnoble

    EQnoble Well-Known Member

    Per this example:

    Turn
    http://nbadimensions.net/forums/forums/nba-forum.2/

    into
    http://nbadimensions.net/forums/list/nba-forum.2/

    Home -> Route Filters -> Create new Route filter
    Find Route: forums
    Replace With: list
    RouteFilters.png RouteFilters2.png
     
  16. Brogan

    Brogan XenForo Moderator Staff Member

    The alternative of course is to change the /forums directory where the site is installed, or install it in the root.
     

Share This Page