Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6807773
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T19:52:24+00:00 2026-05-26T19:52:24+00:00

When I set my WordPress site’s address (URL) setting to = http://www.example.com , then

  • 0

When I set my WordPress site’s address (URL) setting to = http://www.example.com, then the site will redirect all users to access the site WITH the ‘www.’ prefix:

(e.g. http://example.com/… will be redirected to http://www.example.com/…)

When I check the .htaccess file, there’s no rule for handling a missing ‘www’. How is WordPress doing this?

WordPress .htacess file:

# 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
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T19:52:25+00:00Added an answer on May 26, 2026 at 7:52 pm

    The canonical.php file in the wp-includes folder of your WordPress install is where this particular magic happens – there’s a call to wp_redirect that sends a 301:Moved Permanently header with the canonical url.

    FWIW, this is largely unrelated to the rewriting/redirection mechanism in wp-includes/rewrite.php, which handles generating the .htaccess file and saving the permalink structure rewriting rules into a WordPress option (option name ‘redirect_rules’ in wp_options).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm developing a web site which uses wp-cumulus on its home http://www.roytanck.com/2008/03/06/wordpress-plugin-wp-cumulus-flash-based-tag-cloud/ it's a
I've recently set up a WordPress blog and it's removing the www from all
I was looking this site for data validation: http://codeblitz.wordpress.com/2009/05/08/wpf-validation-made-easy-with-idataerrorinfo/ And it sounds great the
I've set up a wordpress site using the information gleaned from http://codex.wordpress.org/Using_Subversion and other
I have a WordPress site (2.6.2) in which I have set the Home page
I am trying to set up a page on a wordpress site that displays
I have set up my wordpress site on my local machine and I would
I am working with PHP5.3.6 on Windows 2008R2. In Wordpress, I can set all
I have a Wordpress site that I am currently working on and have set
I have set up infinite scroll on a website I am building here: http://richardgordoncook.com/fg/

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.