WwwRedirect: Difference between revisions From Online Manual

Jump to: navigation, search
(Created page with "I see the argument "wwwRedirect" in my forum URL. When you set up your forum, you specified that the site URL was www.yoursite.com. However, when you try to access your site,...")
 
mNo edit summary
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
I see the argument "wwwRedirect" in my forum URL.
Why is "wwwRedirect" in my forum URL?


When you set up your forum, you specified that the site URL was www.yoursite.com.
When you set up your forum, you specified that the site URL was www.yoursite.com, but when you try to access it, you are using the domain "yoursite.com".  As a result, SMF redirects you to the www URL of your site address.
However, when you try to access your site, you are using just the domain "yoursite.com".


SMF is, correctly, because of the settings, automatically redirecting you to the www URL of your site address.
If you wish to change this behaviour, there are three options:
#Access the site using the www.
#Change your site settings to remove the www from your site URL and all the URLs of themes, smilies, and attachments (use [[repair_settings.php]] to do this).
#Use a .htaccess redirect to automatically (and invisibly) redirect users to the version of your URL that you want to use.


You can do several things
[[Category:FAQ]]
1- access the site using the www.
2- change your site settings to remove the www from your site URL and all URLs of themes, smilies, attachments, etc. (use repair_settings.php)
3- use an htaccess redirect to automatically (and invisibly) redirect users to the version of your URL that you want to use.

Latest revision as of 15:54, 31 May 2016

Why is "wwwRedirect" in my forum URL?

When you set up your forum, you specified that the site URL was www.yoursite.com, but when you try to access it, you are using the domain "yoursite.com". As a result, SMF redirects you to the www URL of your site address.

If you wish to change this behaviour, there are three options:

  1. Access the site using the www.
  2. Change your site settings to remove the www from your site URL and all the URLs of themes, smilies, and attachments (use repair_settings.php to do this).
  3. Use a .htaccess redirect to automatically (and invisibly) redirect users to the version of your URL that you want to use.


Advertisement: