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

XF 1.4 Trouble with registering in the forums

Discussion in 'Troubleshooting and Problems' started by ViciousGnome, Mar 2, 2015.

  1. ViciousGnome

    ViciousGnome Active Member

    Hello, and thank you for trying to assist me.

    Users have reported trouble registering in my forums. Specifically, the confirmation link is not working properly. So, I registered a new user to test. When I registered, I received the message that I needed to confirm my account via the email sent. The link in the email was:

    http://www.imjustacop.com/forums/index.php?account-confirmation/27/email&c=-ZEZRe97Qzb1HAr7

    However, the link took me to:

    http://imjustacop.com/?account-confirmation/27/email&c=-ZEZRe97Qzb1HAr7

    For some reason, the forums/index.php is being removed, and the when I click on the link, I go to the main blog page. Any ideas as to why this is happening? Thanks again for trying to help.
     
  2. ViciousGnome

    ViciousGnome Active Member

    Also, since I don't want to discourage registration, I have removed email confirmation, and set it so that I manually approve everyone.
     
  3. Brogan

    Brogan XenForo Moderator Staff Member

  4. ViciousGnome

    ViciousGnome Active Member

  5. ViciousGnome

    ViciousGnome Active Member

    Still not working properly.
     
  6. Mike

    Mike XenForo Developer Staff Member

    There's a redirect taking you from forums/index.php to index.php and then it looks like WordPress is taking off the index.php part. The first redirect that's being triggered is happening before PHP executes so it's not XenForo triggering it directly. Do you have any extra redirects in you .htaccess?
     
  7. ViciousGnome

    ViciousGnome Active Member

    Thanks Mike for trying to help.

    In this thread I was advised that I needed to either force www or non www. I edited the .htaccess to try and force the removal of www. I just verified, and I only have one .htaccess file, and it is in the /forums directory of my host. Here is the current .htaccess file:

    Code:
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    
    RewriteCond %{HTTP_HOST} !^imjustacop\.com$ [NC]
    RewriteRule ^(.*)$ http://imjustacop.com/$1 [R=301,L,QSA]
    
    
    
    
    
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    
    # END WordPress
    I apologize for my ignorance. I am not a programmer, and I more or less wing it based on the wonderful help I get from these forums. :)

    Thanks again for trying to help.
     
  8. Brogan

    Brogan XenForo Moderator Staff Member

    Why do you have WordPress references in the XenForo directory?

    I would suggest replacing the default XenForo .htaccess file.

    Take a backup of what you have now and then either rename the htaccess.txt file or take the contents from here: https://xenforo.com/community/htaccess.txt

    Once you have this issue resolved you can look at reapplying the www/non-www rewrite.
     
  9. ViciousGnome

    ViciousGnome Active Member

    Honest answer? I have no idea! :whistle:

    I am already have the file backed up. I will take the content from the suggested link, upload it, and see if it works. If it does, I will advise. Thank you Brogan, and sorry I'm not very bright when it comes to this programming. Hey, I'm just a cop! ;)
     
  10. ViciousGnome

    ViciousGnome Active Member

    One question, do I need to add the following code to handle the forced removal of www?
    Code:
    RewriteCond %{HTTP_HOST} !^imjustacop\.com$ [NC]
    RewriteRule ^(.*)$ http://imjustacop.com/$1 [R=301,L,QSA]
    
     
  11. Brogan

    Brogan XenForo Moderator Staff Member

  12. ViciousGnome

    ViciousGnome Active Member

  13. Brogan

    Brogan XenForo Moderator Staff Member

    What is in the .htaccess file in the domain root?
     
  14. ViciousGnome

    ViciousGnome Active Member

    Code:
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    # END WordPress
     
  15. Brogan

    Brogan XenForo Moderator Staff Member

    I can't really see why the URL is being manipulated.

    Can you submit a ticket with ACP, FTP and cPanel log in details so I can take a look?
     
  16. ViciousGnome

    ViciousGnome Active Member

    Sure. Will do it now.
     

Share This Page