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

XF 1.4 Redirects Clashing?

Discussion in 'XenForo Questions and Support' started by Charlie J, Mar 23, 2015.

  1. Charlie J

    Charlie J Active Member

    I own a domain and would like to have a Redirect which is mydomain.com/Vote however when the redirect goes to a page i setup it keeps saying "That page could not be found" because it keeps clashing with the xenforo thing, anyway i can change?
     
  2. Charlie J

    Charlie J Active Member

  3. Mike

    Mike XenForo Developer Staff Member

    Sounds like there isn't a redirect set up. How have you setup the redirect?
     
  4. Charlie J

    Charlie J Active Member

    I used hostgators domain redirect system
     
  5. Mike

    Mike XenForo Developer Staff Member

    Unfortunately, as I don't know how that system is working, I can't really provide a great recommendation. XenForo uses a "catch all" redirect in .htaccess to handle friendly URLs. Assuming that their system is modifying .htaccess, the redirect would need to be moved up in the file before the default XenForo redirects.

    Can you show us the contents of your .htaccess file? (Not htaccess.txt)
     
  6. Charlie J

    Charlie J Active Member

    Code:
    #    Mod_security can interfere with uploading of content such as attachments. If you
    #    cannot attach files, remove the "#" from the lines below.
    #<IfModule mod_security.c>
    #    SecFilterEngine Off
    #    SecFilterScanPOST Off
    #</IfModule>
    
    ErrorDocument 401 default
    ErrorDocument 403 default
    ErrorDocument 404 default
    ErrorDocument 500 default
    
    <IfModule mod_rewrite.c>
        RewriteEngine On
    
        #    If you are having problems with the rewrite rules, remove the "#" from the
        #    line that begins "RewriteBase" below. You will also have to change the path
        #    of the rewrite to reflect the path to your XenForo installation.
        #RewriteBase /xenforo
    
        #    This line may be needed to enable WebDAV editing with PHP as a CGI.
        #RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
    
        RewriteCond %{REQUEST_FILENAME} -f [OR]
        RewriteCond %{REQUEST_FILENAME} -l [OR]
        RewriteCond %{REQUEST_FILENAME} -d
        RewriteRule ^.*$ - [NC,L]
        RewriteRule ^(data/|js/|styles/|install/|favicon\.ico|crossdomain\.xml|robots\.txt) - [NC,L]
        RewriteRule ^.*$ index.php [NC,L]
    </IfModule>
    
    RewriteCond %{HTTP_HOST} ^toxicnation\.net$ [OR]
    RewriteCond %{HTTP_HOST} ^www\.toxicnation\.net$
    RewriteRule ^Vote$ "http\:\/\/toxicnation\.net\/pages\/Vote\/" [R=301,L]
    
    Sorry for late reply, there
     
  7. Mike

    Mike XenForo Developer Staff Member

    Right, move the bottom 3 lines (which are what the redirect tool added) up so they're just below:
    Code:
    RewriteEngine On
     
  8. Charlie J

    Charlie J Active Member

    Im confused sorry?
     
  9. Brogan

    Brogan XenForo Moderator Staff Member

    Code:
    # Mod_security can interfere with uploading of content such as attachments. If you
    # cannot attach files, remove the "#" from the lines below.
    #<IfModule mod_security.c>
    # SecFilterEngine Off
    # SecFilterScanPOST Off
    #</IfModule>
    
    ErrorDocument 401 default
    ErrorDocument 403 default
    ErrorDocument 404 default
    ErrorDocument 500 default
    
    <IfModule mod_rewrite.c>
    RewriteEngine On
    
    RewriteCond %{HTTP_HOST} ^toxicnation\.net$ [OR]
    RewriteCond %{HTTP_HOST} ^www\.toxicnation\.net$
    RewriteRule ^Vote$ "http\:\/\/toxicnation\.net\/pages\/Vote\/" [R=301,L]
    
    # If you are having problems with the rewrite rules, remove the "#" from the
    # line that begins "RewriteBase" below. You will also have to change the path
    # of the rewrite to reflect the path to your XenForo installation.
    #RewriteBase /xenforo
    
    # This line may be needed to enable WebDAV editing with PHP as a CGI.
    #RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
    
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -l [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^.*$ - [NC,L]
    RewriteRule ^(data/|js/|styles/|install/|favicon\.ico|crossdomain\.xml|robots\.txt) - [NC,L]
    RewriteRule ^.*$ index.php [NC,L]
    </IfModule>
     
  10. Charlie J

    Charlie J Active Member

    Sorry for late reply, ill try this now, Thanks :)
     
  11. Charlie J

    Charlie J Active Member

    Another thing is:

    http://hypixel.net/player/NoxyD/

    What XenForo addon has this, it has a minecraft acc thing on there posts on at bottom then u click on it to see that
     
  12. Brogan

    Brogan XenForo Moderator Staff Member

    You would need to search the resources.
     
  13. Charlie J

    Charlie J Active Member

    Yeah but anyway u could help at all?
     
  14. Charlie J

    Charlie J Active Member

    Also quick note, i tried the .htaccess file from @Brogan just now and Thanks that worked lol, i just want it to be disguised if possible so it displays from web bar as toxicnation.net/Vote rather than the toxicnation.net/pages/vote thing
     

Share This Page