Enforce www. Preference

About

This plugin will help preserve your permalinks by enforcing your no-www or yes-www preference (http://example.com/ vs. http://www.example.com/) and will strip off index.php from the ends of URIs.

Download

Instructions

  1. Download and unzip
  2. Upload enforce-www-preference.php to /wp-content/plugins/
  3. Activate from within the WordPress admin interface

Versions

  • Version 1.3 Changed the name, and moved to my /code/ section
  • Version 1.2 Initial release

I’ve spent a lot of time writing this code and supporting it. If you derive some benefit from this code, please consider showing your gratitute in a more tangible
way. Thanks!

I have received $0 this month for my coding efforts.

Donate with PayPalAmazon.com Wishlist


456 Responses to “Enforce www. Preference”

  1. [...] Enforce http://www. Preference - giúp bảo bệ parmentlink của bạn có www hoặc không có www, và đồng thời chuyển index.php phía sau của URL. [...]

  2.  - Insert HTML META description tags using post excerpts. SEO Title Tag - Optimize your wordpress title tags for search engines. Mass edit the title tags of posts, pages, category pages, tag pages etc.Enforce http://www. Preference - will help preserve your permalinks by enforcing your no-www or yes-www preference and will strip off index.php from the ends of URIs. Optimal Title - allows you to have your blog name tacked on to the end of the page title instead of having it

  3. Enforce WWW Preference- 使用301永久重定向强迫访问者或搜索引擎访问博客时使用统一的域名。 Permacop - 重定向网址。 Post2Page - 将日志转为静态页面。

  4. - tối ưu hóa thẻ tiêu đề của Wordpress cho các bộ máy tìm kiếm. Chỉnh sửa toàn bộ thẻ tiêu đề của bài viết, của trang, của category và tag của các trang, v.v..Enforce http://www. Preference- giúp bảo bệ parmentlink của bạn có www hoặc không có www, và đồng thời chuyển index.php phía sau của URL. Optimal Title - cho phép bạn chuyển tên của blog ra phía sau tiêu đề của trang và các bài viết thay

  5. TechoCrunch says:

    - Insert HTML META description tags using post excerpts. SEO Title Tag - Optimize your wordpress title tags for search engines. Mass edit the title tags of posts, pages, category pages, tag pages etc.Enforce http://www. Preference- will help preserve your permalinks by enforcing your no-www or yes-www preference and will strip off index.php from the ends of URIs. Optimal Title - allows you to have your blog name tacked on to the end of the page title instead of having it appear

  6. [...] must install and active enforce www preference plugin. This simple way to redirect your URL appear into http://www.yourdomain.com when you enter [...]

  7. [...] Enforce http://www. Preference - permette di gestire il reindirizzamento dei lettori alla versione con o senza “www.” davanti all’indirizzo del blog. [...]

  8. [...] Enforce http://www. Preference - permette di gestire il reindirizzamento dei lettori alla versione con o senza “www.” davanti all’indirizzo del blog. [...]

  9. this does not seem to work in WP 2.3.2.

    I installed and activated in plugins. it shows up as activated but i don’t see it in the OPtions area aside from the other plugins who show up.

    this is a good plugin so i hope you make an updated one. thanks

  10. Enforce http://www. PreferenceProvides 301 redirects to queries with /index.php and enforces your use or non-use of http://www.

  11. [...] Enforce WWW Preference - 使用301永久重定向强迫访问者或搜索引擎访问博客时使用统一的域名。 [...]

  12. and will even change the name and URLs based on the address people access it with. Download Counter - Counts and tracks the downloads of all your files. Email Users - This plugin allows you to mail registered users on your blog based on their role.Enforce WWW Preference- Provides 301 redirects to queries with /index.php and enforces your use or non-use of www to make sure your search engine indexing is uniform. Excerpt Editor - Gives you more control over the excerpts such as length and auto creation.

  13. [...] at all. My blog too does this. http://www.danltn.com I prefer it that way. Use this plugin: http://txfx.net/code/wordpress/enforce-www-preference/ Dan __________________ VERY CHEAP *ADVANCED* BULK DOMAIN-STATISTICS LOOKUP Danltn’s Blog - [...]

  14. - Insert HTML META description tags using post excerpts.SEO Title Tag - Optimize your wordpress title tags for search engines. Mass edit the title tags of posts, pages, category pages, tag pages etc.Enforce http://www. Preference- will help preserve your permalinks by enforcing your no-www or yes-www preference and will strip off index.php from the ends of URIs.Optimal Title - allows you to have your blog name tacked on to the end of the page title instead of having it appear

  15. [...] it n the header.php file will cause the same text to be used on every page and post). I also use Enforce .www Preference as well to not only enforce whether or not I use the .www subdomain or not (I personally use it), [...]

  16. [...] enviar el contenido a … autobombeame y otras (desactivado que ahora puse los iconos a mano ) Enforce http://www. Preference - Para borrar el index.php de la barra de direcciones y redirigir desde tecnoswa.com a [...]

  17. [...] Users - This plugin allows you to mail registered users on your blog based on their role.Enforce WWW Preference - Provides 301 redirects to queries with /index.php and enforces your use or non-use of www to make [...]

  18. [...] that what Mark’s plugin [...]

  19. [...] Enforce http://www. Preference - giúp bảo bệ parmentlink của bạn có www hoặc không có www, và đồng thời chuyển index.php phía sau của URL. [...]

  20. [...] Enforce or no http://www. Preference : es wird je nach Einstellung sofort auf die passende Seite mit oder ohne “www.” vorweg umgeleitet vorgestellt von Schnurrecks Welt [...]

  21. [...] Enforce WWW Preference - Provides 301 redirects to queries with /index.php and enforces your use or non-use of www to make sure your search engine indexing is uniform. [...]

  22. [...] backlink count and maybe even your page rank. The easiest way to solve this is with the help of the Enforce http://www. Preference plugin. A bonus with this plugin is that it will strip off index.php from the end of your [...]

  23. [...] Enforce http://www. Preference - giúp bảo bệ parmentlink của bạn có www hoặc không có www, và đồng thời chuyển index.php phía sau của URL. [...]

  24. [...] them out, they are both easy to install so don’t worry about that. You can grab them here: enforce www and wordpress duplicate content Did you like this article? If so, please subscribe to my RSS [...]

  25. . If you do want your category pages indexed, you can also turn it on (instructions on how to do this are on the download page, located below). So check them out, they are both easy to install so don’t worry about that. You can grab them here:enforce wwwand wordpress duplicate content

  26. [...] Enforce http://www. Preference - giúp bảo bệ parmentlink của bạn có www hoặc không có www, và đồng thời chuyển index.php phía sau của URL. [...]

  27. - tối ưu hóa thẻ tiêu đề của Wordpress cho các bộ máy tìm kiếm. Chỉnh sửa toàn bộ thẻ tiêu đề của bài viết, của trang, của category và tag của các trang, v.v..Enforce http://www. Preference- giúp bảo bệ parmentlink của bạn có www hoặc không có www, và đồng thời chuyển index.php phía sau của URL. Optimal Title - cho phép bạn chuyển tên của blog ra phía sau tiêu đề của trang và các bài viết thay

  28. [...] know WP plugin developer guised in the name Mark Jaquith of TxFx.net has created and almighty “Enforce WWW Plugin” to end your eternal suffering from Google damnation. What does the plugin do? Ask yourself that [...]

  29. [...] that work behind the scenes and block spam, create navigation systems, generate sitemaps, and enforces WWW or non-WWW for your blog. Then there are visual ones, like plugins that encourage visitors to subscribe, [...]

  30. to make it perfect for your blog. Plugins can manage and run things automatically without you having to lift a finger after you install one. There are plugins that work behind the scenes and block spam, create navigation systems, generate sitemaps, andenforces WWW or non-WWWfor your blog. Then there are visual ones, like plugins that encourage visitors to subscribe, create contact forms, rotate advertisement banners, let you create polls for your blog, and thousands more. A blog can look however your heart desires - it

  31. [...] Enforce http://www. Preference - giúp bảo bệ parmentlink của bạn có www hoặc không có www, và đồng thời chuyển index.php phía sau của URL. [...]

  32. [...] www和non-www的问题可以通过 这个插件来解决:enforce www [...]

  33. and “General”, choose the version for your blog URL that you want to use. Install a plugin that will do the redirect one site to the other. Two of the available plugins are WWW-Redirect, and theEnforce http://www. Preference. I opted for the last one, and the installation and activation was a breeze. All you have to do is upload the plugin and activate it. There was no need for any additional configuration, since the option we make in Point 1 will prevail. Both of these

  34. [...] Enforce http://www. Preference - giúp bảo bệ parmentlink của bạn có www hoặc không có www, và đồng thời chuyển index.php phía sau của URL. [...]

  35. [...] Want to use this easy plugin? The download link is available here. [...]

  36. [...] Enforce http://www. Preference - will help preserve your permalinks by enforcing your no-www or yes-www preference and will strip off index.php from the ends of URIs. [...]

  37. [...] Bevor ich jetzt noch stundenlang weitersuche, vielleicht kann mir ja jemand helfen.Ich will wordpress ja den doppelcontent mit www und ohne vermeiden.Dafür soll ich ja die htaccess verändern oder irgentwas in der Permalinksstruktur. Leider finden ich die htaccess nicht und falls es eine andere Lösung gibt kenne ich die auch nicht. Vielen Dank wenn mir jemand helfen könnte. Du kannst auch einfach ein Plugin installieren. Klöck_________________… [...]

  38. - tối ưu hóa thẻ tiêu đề của WordPress cho các bộ máy tìm kiếm. Chỉnh sửa toàn bộ thẻ tiêu đề của bài viết, của trang, của category và tag của các trang, v.v..Enforce http://www. Preference- giúp bảo bệ parmentlink của bạn có www hoặc không có www, và đồng thời chuyển index.php phía sau của URL. Optimal Title - cho phép bạn chuyển tên của blog ra phía sau tiêu đề của trang và các bài viết

  39. [...] Enforce http://www. Preference - giúp bảo bệ parmentlink của bạn có www hoặc không có www, và đồng thời chuyển index.php phía sau của URL. [...]

  40. [...] Enforce WWW Preference - Provides 301 redirects to queries with /index.php and enforces your use or non-use of www to make sure your search engine indexing is uniform. [...]

  41. [...] Email Users - 可以根据注册用户的不同权限给他们发送电子邮件。 Enforce WWW Preference - 使用301永久重定向强迫访问者或搜索引擎访问博客时使用统一的域名。 [...]

  42. [...] second plugin is Enforce http://www. Preference. Most hosts allow you to access your site by either http://www.name.com or just name.com. Google will rank [...]

  43. [...] a URL with or without the www you should decide which one is more important to you and download the Enforce www preference plugin. Super cached files are stored in a directory named after the hostname so if you go to the [...]

  44. ll appreciate this. props Michael R Aulia for that. One more thing to note. If your blog is visible at a URL with or without the www you should decide which one is more important to you and download theEnforce www preferenceplugin. Super cached files are stored in a directory named after the hostname so if you go to the www URL and someone else goes to the url without the www they won’t see the static html file. Deciding on one URL avoids any issues with duplicate

  45. add the http://www. infront of your URL.  For example if someone accesses your website by going to http://domain.com.  They will automatically be redirected to http://www.domain.com.  This plugin eliminates the possibility of duplicate content.Download Enforce WWW PreferenceFeedBurner Feedsmith - This plugin redirects the default RSS feed in Wordpress to a FeedBurner URL.  FeedBurner is an RSS management tool that provides stats such as how many people are subscribed to your RSS feed.  You can check out FeedBurner at

  46. [...] Enforce http://www. Preference - giúp bảo bệ parmentlink của bạn có www hoặc không có www, và đồng thời chuyển index.php phía sau của URL. [...]

  47. [...] Enforce http://www. Preference : Its very important to stick to one version of your blog url either www or without http://www. When you [...]

  48. [...] рассылать письма зарегистрируемым пользователям. Enforce WWW Preference - совершает 301 редирект (домены с http://voozzy.com и [...]

  49. [...] Enforce http://www. Preference - giúp bảo bệ parmentlink của bạn có www hoặc không có www, và đồng thời chuyển index.php phía sau của URL. [...]

  50. [...] Enforce WWW Preference - 使用301永久重定向强迫访问者或搜索引擎访问博客时使用统一的域名。 [...]

  51. [...] Email Users - 可以根据注册用户的不同权限给他们发送电子邮件。 Enforce WWW Preference - 使用301永久重定向强迫访问者或搜索引擎访问博客时使用统一的域名。 [...]

  52. [...] Enforce http://www. Preference - giúp bảo bệ parmentlink của bạn có www hoặc không có www, và đồng thời chuyển index.php phía sau của URL. [...]

  53. [...] also use Enforce .www Preference as well to not only enforce whether or not I use the .www subdomain or not (I personally use it), [...]

  54. [...] Enforce http://www. Preference : اختيار ظهور شكل موقعك مع www أو بدونها بكل سهولة. [...]

  55. [...] Enforce http://www. Preference - giúp bảo bệ parmentlink của bạn có www hoặc không có www, và đồng thời chuyển index.php phía sau của URL. [...]

  56. [...] Enforce http://www. Preference - giúp bảo bệ parmentlink của bạn có www hoặc không có www, và đồng thời chuyển index.php phía sau của URL. [...]

  57. [...] Enforce http://www. Preference - will help preserve your permalinks by enforcing your no-www or yes-www preference and will strip off index.php from the ends of URIs. [...]

  58. [...] Enforce http://www. Preference - giúp bảo bệ parmentlink của bạn có www hoặc không có www, và đồng thời chuyển index.php phía sau của URL. [...]

  59. [...] Enforce http://www. Preference - giúp bảo bệ parmentlink của bạn có www hoặc không có www, và đồng thời chuyển index.php phía sau của URL. [...]

  60. [...] Enforce http://www. Preference - permette di gestire il reindirizzamento dei lettori alla versione con o senza “www.” davanti all’indirizzo del blog. [...]

  61. [...] Enforce http://www. Preference - giúp bảo bệ parmentlink của bạn có www hoặc không có www, và đồng thời chuyển index.php phía sau của URL. [...]

  62. [...] Enforce WWW Preference: proporciona una redireccin 301 para mantener una indexacin correcto, ya sea con o sin “www”. [...]

  63. Shine says:

    i cant use this plugin in MU wordpress, is that work with MU wordpress 1.3.3 ???

  64. [...] Enforce WWW Preference: proporciona una redirección 301 para mantener una indexación correcto, ya sea con o sin “www”. [...]

  65. [...] Enforce WWW Preference: proporciona una redirección 301 para mantener una indexación correcto, ya sea con o sin “www”. [...]

  66. [...] Downloadeaza plugin-ul [...]

  67. [...] Enforce http://www. Preference - permette di gestire il reindirizzamento dei lettori alla versione con o senza “www.” davanti all’indirizzo del blog. [...]

  68. [...] Fortunately there’s a great WordPress plugin that takes care of that issue. Also make sure you have the right settings in your WordPress > [...]

  69. [...] Enforce http://www. Preference - giúp bảo bệ parmentlink của bạn có www hoặc không có www, và đồng thời chuyển index.php phía sau của URL. [...]

  70. [...] Install Enforce http://www. Preference This article by dailyblogtips.com explains why this is [...]

  71. suicidalsam says:

    hey, how do i configure the preference? is it done automatically or do i have to tweak anything?

    I have activated the plugin but I cant see anywhere I can set my preference. I use www on my blog and I want to direct all PR juice to it.

  72. [...] Enforce www Preference: This simple plugin will either add or remove the ‘www’ in your URL. Search engines love this. [...]

  73. Mark says:

    suicidalsam, it is based off of your Blog URL setting. It will enforce that preference.

  74. Stuart says:

    FYI -Anyone thinking about using this plugin. I tried this on two different 2.5 wordpress blogs. And it had the effect in both of stopping the cron commands.

    So, if you do decide to test this out, then be aware of that possible conflict.

    As soon as I turned this off in plugins the cron started again on both, so I am sure this was the cause.

    Shame. Because its a great idea.

    Let me know if that problem gets fixed.

    Stuart

  75. [...] Enforce http://www. Preference - giúp bảo bệ parmentlink của bạn có www hoặc không có www, và đồng thời chuyển index.php phía sau của URL. [...]

  76. [...] Enforce http://www. Preference - giúp bảo bệ parmentlink của bạn có www hoặc không có www, và đồng thời chuyển index.php phía sau của URL. [...]

  77. vick says:

    HOW TO install this plugin in MU wordpress, please help me!!

  78. [...] Enforce http://www. Preference - permette di gestire il reindirizzamento dei lettori alla versione con o senza “www.” davanti all’indirizzo del blog. [...]

  79. [...] Enforce http://www. Preference - Ajuda a preservar a existência ou não, de acordo com sua preferência, do “www.” nos permalinks de seu blog. [...]

  80. [...] Enforce WWW Preference - 提供301 重定向功能。 [...]

  81. [...] Enforce http://www. Preference - giúp bảo bệ parmentlink của bạn có www hoặc không có www, và đồng thời chuyển index.php phía sau của URL. [...]

  82. [...] Enforce http://www. Preference - Ajuda a preservar a existência ou não, de acordo com sua preferência, do “www.” nos permalinks de seu blog. [...]

  83. [...] DupPrevent Plugin - 防止你的博客因为重复内容被google惩罚。 Enforce WWW Preference - 使用301永久重定向强迫访问者或搜索引擎访问博客时使用统一的域名。 [...]

  84. [...] Wordpress redirection plugins Install enforce www preference plugin for your wordpress blog. Activate them and set your domain preference of your choice. There are [...]

  85. [...] Enforce http://www. Preference - možete podesit preusmjerava nje sa vaše domene bez www prefixa na domenu sa www prefixom i obrnuto. // [...]

  86. [...] http://www. Preference –> (http://txfx.net/code/wordpress/enforce-www-preference/) This plugin will help preserve your permalinks by enforcing your no-www or yes-www preference [...]

  87. [...] tag-urilor (cu alte cuvinte tag-ul HTML utilizat ca titlu de pagină) a blogului pentru SEO. 6.Enforce http://www. Preference - permite gestionarea redirecţionărilor cititorilor la versiunea cu sau fără http://www. înaintea [...]

  88. [...] Enforce WWW Preference - 使用301永久重定向强迫访问者或搜索引擎访问博客时使用统一的域名。 [...]

  89. [...] Enforce http://www. Preference - will help preserve your permalinks by enforcing your no-www or yes-www preference and will strip off index.php from the ends of URIs. [...]

  90. [...] Email Users - Enforce WWW Preference - Excerpt Editor - FeedBurner FeedSmith - Fix Database - Genki Announcement - Genki Pre-Publish [...]

  91. [...] Enforce http://www. Preference - giúp bảo bệ parmentlink của bạn có www hoặc không có www, và đồng thời chuyển index.php phía sau của URL. [...]

  92. [...] Enforce http://www. Preference - giúp bảo bệ parmentlink của bạn có www hoặc không có www, và đồng thời chuyển index.php phía sau của URL. [...]

  93. [...] Enforce http://www. Preference - will help preserve your permalinks by enforcing your no-www or yes-www preference and will strip off index.php from the ends of URIs. [...]

  94. [...] Enforce http://www. Preference : Its very important to stick to one version of your blog url either www or without http://www. When you [...]

  95. [...] Enforce WWW Preference - 使用301永久重定向强迫访问者或搜索引擎访问博客时使用统一的域名。 [...]

  96. 120+ WordPress Plugins…

    Running your Wordpress blog can feel like a full-time job sometimes. We have compiled an A-Z list of more than 120 plugins to help you streamline everything you need to do out back.
    AJAX-Powered WordPress Plugins
    The WordPress blogging platform has tho…

  97. [...] Enforce http://www. Preference - Ajuda a preservar a existência ou não, de acordo com sua preferência, do “www.” nos permalinks de seu blog. [...]

Leave a Reply