XF 1.4 Trouble with registering in the forums

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.
 
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?
 
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?
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.
 
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.
 
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.
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! ;)
 
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.
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]
 
What is in the .htaccess file in the domain root?
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
 
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?
 
Back
Top Bottom