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
- Download and unzip
- Upload
enforce-www-preference.phpto/wp-content/plugins/ - 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


new permalink values based on current user settings. Read more via this thread at the WordPress Support Forums. Don’t forget to reverse any changes made during the permalink conversion process. References & Resources: WordPress PermalinksEnforce www-Preference WP 2.0 Plugin Compatibility A mod_rewrite Tutorial
10 Enforce www. Preference
Permite tener a Wordpress con más de un dominio, pudiendo cambiar de acuerdo con el que accedan los visitantes. Download Counter – Contador de descargas para tus archivos. Email Users – Te permite enviar emails a los usuarios registrados del blog. Enforce WWW Preference – Proporciona una redirección 301 para mantener una indexación correcto, ya sea con o sin “www”. Excerpt Editor – Te da más control para generar extractos o resúmenes de tus entradas y la posibilidad de auto generación de estos.
enjoy! (Blogspot and other platform users, I suppose this is a strictly academic post for you!) 7social plus Aizatto’s Related Posts Akismet Batch Categories Blogroll Autolinker Brian’s Threaded Comments Bunny’s Technorati Tags Dofollow Enforce www. Preference Exec-PHP Fancy Pullquotes Feedburner Feed Replacement Future Calendar Genki Announcement Google (XML) Sitemaps Google Analyticator In Series KG Archives No Life PJW Wordpress Version Check Popularity Contest
Quick Tips for Blogs July 8, 2007 on 2:41 pm | In blogs | No Comments www or not www I Installed Enforce www preference on my blogs. The main motivation was that for many websites I used http://www.website.com. Wordpress by default uses http://websites.com. It is best to have either www. or not. It is not good practice to have both, this is because your website will look to
Plugin #1: Enforce www. Preference make your www a www Just so you know (in case you still don’t know): The following URLs are considered different entities by the search engines: http://mysite.com http://mysite.com/index.php http://www.mysite.com/index.php
auch nicht einfach zu löschen. Ausm Index weg bin ich nicht, kommen noch genug Besucher via Google. Und Vorwürfe wegen Dublicate Content kann ich mir auch nicht wirklich machen, habe ein Plugin damit die Archivseiten etc. nicht indiziert werden, eins gegen “mit www und ohne www” und dazu dann noch eine robots.txt welche den Rest erledigen sollte. Ich schau mir jetzt mal die Google-Seiten an und versuche meine Seite “reindizieren” zu lassen, kann ja nicht schaden. Hat Jemand schon ähnliche Erfahrungen gemacht?
to use it, but the key is free and easy to get. Brian’s Threaded Comments: If your site gets a lot of discussion through the comments, then this is a useful tool for threading the comments and allowing replies to comments to show segregation. Enforce www. Preference: Search engines will ding your site for having redundant comment if they think that your http://www.site.com and your site.com sites are two different ones. This plugin enforces yes-www or no-www throughout the site. You can also accomplish the same thing
All in One SEO Pack Akismet AMM – Amazon Media Management Extension Brian’s Threaded Comments Complete Vbridge Plugin Custom Query String Chunk Urls for WordPress del.icio.us cached++ Enforce www. Preference Executable PHP widget FeedBurner FeedSmith Google Code Prettify Google XML Sitemaps Google Analytics Google Sitemaps – Append UTW Tags Head META Description My Link Order
display it on their site. You make up a random string of words and set up a custom google search to find them, if your reading my feed you’ll see some random words at the top of it, thats my digital finger print, Its actually a pretty good idea! 6. Enforce www. Preference
[...] Thanks to the lovely people at the WordPress support forums, I found a fix for the password problem. [...]
September 16th, 2005 | 9:38 AM Thanks to the lovely people at the WordPress support forums,I found a fix for the password problem. Hopefully that solves it… if anyone is still having issues, please let me know
September 16th, 2005 | 9:38 AM Thanks to the lovely people at the WordPress support forums,I found a fix for the password problem. Hopefully that solves it… if anyone is still having issues, please let me know
[...] Yeah when you change to permalinks only the links WP generates change. So if you posted a link or have it in your template, it remains. And no you don’t have to change anything – the ID will always work, but the permalink redirect might be nice for you. That way even if someone does use the regular id method to get to a post or page, they’ll be automatically redirected to the permalink. I use it and enforce www preference on my site and it’s a rather spiffy thing. Posted: 2005-09-21 14:52:01 # [...]
[...] If you are having a problem with the inline ajax comments not working, remove/add ‘www’ to your domain URL and reload. If that fixes the problem, check out the Enforce WWW Preference plugin. [...]
As nice as neat and useful. Very nice piece of code – I love it, especially as it’s getting me rid of these nasty XMLHttpRequest object restrictions referring crossing domain borders.
Enforce www. Preference [ Tempus Fugit | TxFx.net ] 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. Technorati Tags:
Enforce www. Preference [ Tempus Fugit | TxFx.net … 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. Technorati Tags:
[...] Enforce www. Preference [ Tempus Fugit | TxFx.net ] 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. No TagsBookmark It:These icons link to social bookmarking sites where readers can share and discover new web pages. [...]
[...] domain.tld/artikel eingeben und erreichst den artikel. (so läuft man aber Gefahr aus dem Google-Index zu fliegen). Bei verschiedenen Domains sollte dir klar sein, dass dieses Plugin dafür sorgt, dass man den Blog zwar unter mehreren Domains erreicht, die angezeigte URL (also deine Inhalte) sind dann aber nur unter einer, der "Wordpress home" URL zu erreichen (siehe options/general) http://fucoder.com/code/permalink-redirect/ ähnlich: http://isaacschlueter.com/plugins/i-…annonical-url/ enforce-www-preference kümmert sich dann auch noch um die "www"s (oder eben nicht "www"s) man kann das zwar eigentlich auch mit einer htaccess machen, bei wp2 geht das aber nicht wenn man permalinks nutzt (wegen der eigenen rewrite-engine) http://txfx.net/code/wordpress/enforce-www-preference/ Multi-URI Ping-Tool http://mani.wordpress.com/2005/10/24/multi-uri-plugin/ noch ein bisschen ungetestetes: filosofo’s homepage plugin verschiebt blog in unterverzeichnis und macht statische seite zur startseite http://www.ilfilosofo.com/blog/home-page-control/ hoffe da ist was nützliches für dich dabei. (und vorsicht beim mixen mehrerer plugins – immer schritt für schritt – und testen!) mfg __________________ mein Blog Geändert von erik (29.03.2006 um 00:55 Uhr). [...]
Content. Leider werten Suchmaschinen auch unterschiedliche Aufrufe ein und derselben Domain (z.B: “http://www.webmasterfind.de” und “http://webmasterfind.de”) oftmals als doppelten Content. Eine kleine und schnelle Abhilfe verschafft das PluginEnforce www. Preference
[...] Suchmaschinen wie Google haben eine rechte Antipathie für doppelten Content. Leider werten Suchmaschinen auch unterschiedliche Aufrufe ein und derselben Domain (z.B: “http://www.webmasterfind.de” und “http://webmasterfind.de”) oftmals als doppelten Content. Eine kleine und schnelle Abhilfe verschafft das Plugin Enforce www. Preference, welches das “www” in der URL entweder vollkommen ausblendet bzw. immer anführt. [...]
because its pages load faster and javascript events taken out. Andy, I hope you don’t mind. Thanks to Christopher of Exploding Boy for the Pixel Icons. Plugins used: Customizable Post ListingsEnforce WWW Preference Get Content for Show/Hide Inline Ajax Comments Limit Post Live Comment Preview Update: Screen shot Download Durable|Simple Theme Implementation is a breeze: Unzip the file. Upload the Durable|Simple folder to your WP Theme directory.
new permalink values based on current user settings. Read more via this thread at the WordPress Support Forums. Don’t forget to reverse any changes made during the permalink conversion process. References & Resources: WordPress PermalinksEnforce www-Preference WP 2.0 Plugin Compatibility A mod_rewrite Tutorial
[...] Plugins used: Customizable Post Listings Enforce WWW Preference Get Content for Show/Hide Inline Ajax Comments Limit Post Live Comment Preview [...]
new permalink values based on current user settings. Read more via this thread at the WordPress Support Forums. Don’t forget to reverse any changes made during the permalink conversion process. References & Resources: WordPress PermalinksEnforce www-Preference WP 2.0 Plugin Compatibility A mod_rewrite Tutorial
HI
I activate your plugin- but know I would not use it.
I deactive it,
but the uri is not avaible under
wohnungen-in-karlsruhe.de
but I have to use it under this domain and not under
http://www.wohnungen-in-karlsruhe.de
how can I repair this.
Your plugin is not activ..
please help me
thanks a lot
Monika
Oh!
I have to move the rewrite rules at the end of the htaccess
‘I’m happy ‘
have a nice day
Monika
[...] Oops, i forgot to mention: i use other plugins to deal with permalinks. One is “enforce www preference“, and the other one is “permalink redirect“, and also “redirect old slugs“. Thanks! [...]
[...] Isn’t that what Mark’s plugin does? [...]
There’s no admin options page for this plugin? How do I know that I’m redirecting domain.com to http://www.domain.com
[...] So the first thing I did after doing my research was download and activate Mark Jaquith’s Enforce www. Preference WP plug-in. The nice thing about this plug-in is that it redirects visitors to the www or non-www URI you’ve specified in WordPress’s general options, and strips off index.php thus killing two birds with one stone. *As a side note, I’m not completely sure how to determine whether your www or non-www URL should be used; in my case my non-www URL actually registered a Page Rank whereas my www URL did not. [...]
Great plugin, until now I’d been manually editing the .htaccess files on all my blogs.
[...] Ich habe mir jetzt die beiden PlugIns installiert: http://fucoder.com/code/permalink-redirect/ http://txfx.net/code/wordpress/enforce-www-preference/ [...]
Very handy plugin, thanks.
I modified the code with just a wrap of
if (!headers_sent()) {
}
because in some weird circumstances, it’s possible for wordpress to be accessed outside the normal visitor flow (for example if it’s accessed outside the loop on pages external to WP) and headers will already have been sent (I discovered this by accident and my visitors were getting nasty warning messages for a whole week!
).
[...] Hvis man hellere vil beholde sine W’er, kan man bruge dette plugin. Under alle omstændigheder bør man I et SEO-perspektiv vælge om man vil det ene eller det andet. [...]
[...] RewriteEngine On RewriteCond %{HTTP_HOST} ^example.com$ [NC] RewriteRule ^(.*)$ http://www.example.com/$1 [R=301,L] OR You could install this plugin: http://txfx.net/code/wordpress/enforce-www-preference/ __________________ Make some mad cash! FREE DIRECTORY SUBMISSONS! [...]
[...] Enforce www. Preference [...]
when I first download the plugin the standard setting it to redirect domain.com to http://www.domain.com or the other way round?
and how do you customize it?
Innovation Zen,
It follows whatever you have set as your Blog URI in
Options > GeneralIf you use
www.there, it will use it. If not, it won’t.[...] Ich habe den Beitrag gleich mal zum Anlass genommen, mein SEO-Blog einen kleinen Deut klon-unanfälliger zu machen und das Enforce www. Preference -Plugin eingebaut. Nicht dass es notwendig gewesen wäre, aber eine theoretische Gefahr besteht immer bei solchen Dingen. Das gilt auch für das Weblog vom SEOFreak, denn hier werden Aufrufe für www nicht automatisch auf non-www weitergeleitet Bookmark to: [...]
[...] Enforce www Prefence Faz com que não seja usado o www na frente do endereço do site. O prefixo www pode ou não ser necessário, mas muitos acreditam que a especificação do protocolo http dispensa o uso do www, tornando o endereço mais legÃvel. [...]
[...] Le plug-in dont le code est tiré :http://txfx.net/code/wordpress/enforce-www-preference/ Mon Blog Hors ligne [...]
[...] domain.tld/artikel eingeben und erreichst den artikel. (so läuft man aber Gefahr aus dem Google-Index zu fliegen). Bei verschiedenen Domains sollte dir klar sein, dass dieses Plugin dafür sorgt, dass man den Blog zwar unter mehreren Domains erreicht, die angezeigte URL (also deine Inhalte) sind dann aber nur unter einer, der "Wordpress home" URL zu erreichen (siehe options/general) http://fucoder.com/code/permalink-redirect/ ähnlich: http://isaacschlueter.com/plugins/i-…annonical-url/ enforce-www-preference kümmert sich dann auch noch um die "www"s (oder eben nicht "www"s) man kann das zwar eigentlich auch mit einer htaccess machen, bei wp2 geht das aber nicht wenn man permalinks nutzt (wegen der eigenen rewrite-engine) http://txfx.net/code/wordpress/enforce-www-preference/ Multi-URI Ping-Tool http://mani.wordpress.com/2005/10/24/multi-uri-plugin/ noch ein bisschen ungetestetes: filosofo’s homepage plugin verschiebt blog in unterverzeichnis und macht statische seite zur startseite http://www.ilfilosofo.com/blog/home-page-control/ hoffe da ist was nützliches für dich dabei. (und vorsicht beim mixen mehrerer plugins – immer schritt für schritt – und testen!) mfg __________________ log Geändert von erik (29.03.2006 um 01:55 Uhr). [...]
stránku na verzi bez www a vrátà chybový kód 301 Moved Permanently(Trvale pÅ™esmÄ›rováno). Hlavnà výhoda je v tom, že vyhledávaÄe stránku zaindexujà pouze v jedné verzi a tudÞ by mÄ›la mÃt vyššà page rank. Stáhnout: Enforce www
Great plugin! Nice job!!
I have one question though. Is there a way to alter the plugin to allow…
http://site.com/category/ to redirect to http://www.site.com/category/ ?
Right now http://site.com/category/ redirects to
http://www.site.com/ instead of keeping the subdirectory
I know I can do this on a case by case basis with the .htacesss file (site is hosted on Linux), but can it be done dynamically? I ask because my category and archive folders will update every month, and it will be a pain having to update the .htaccess file every month as well. Thanks again!!
-Ted
[...] Enforce www. Preference [...]
interesting idea – this wordpress blog system (I don’t like this word: blog) Up to now I found the following plugins to be usefull: Enforce www. Preference Explicit Category Sort Fold Category List It’ still not easy to have a multiple language blog run easily – I could not get polyglot run on a turkish system… one has to learn about the .mo files and
wow –
Fast, instant solution. Thanks! and I’ve donated to more than triple your donations for the month. Nice work!
I activated the plugin but it doesn’t do anything. My site still shows up as “http://” in the browser. Am I missing a step?
I noticed the WordPress URI and the Blog URI are set to http:// Do I need to change these to www? And if I do, will it screw anything up? I have no idea what the WordPress URI and Blog URI are so I don’t want to touch them until I know for certain my site won’t get screwed up.
Thanks.
Travis
Lo usé acá pues desde hace un buen tiempo eliminé el www del URL. Hice un comentario de esto mismo hace unos meses. Ahora encontré otro plugin similar, más versátil, hecho por Mark Jaquith (otro de los capos del WordPress Team): Enforce www. Preference, el cual permite elegir si uno quiere forzar el con o sin www; dando como el plugin del párrafo de arriba un error 301 de cambio permamente de dirección antes de redireccionar. Una joyita de escueto código.
[...] Ahora encontré otro plugin similar, más versátil, hecho por Mark Jaquith (otro de los capos del WordPress Team): Enforce www. Preference, el cual permite elegir si uno quiere forzar el con o sin www; dando como el plugin del párrafo de arriba un error 301 de cambio permamente de dirección antes de redireccionar. Una joyita de escueto código. [...]
[...] 2) Use this plugin, to force 301 redirects your fully qualified domain name with “www”. If can be found here http://txfx.net/code/wordpress/enforce-www-preference/ [...]
[...] for you domain so it will look like yourdomain.com minus the “www” in the beginning. Enforce www – Another easy to activate plugin by Mark Jaquith that allows you to choose the URL for your domain [...]
[...] no www. Plugin enforce www. Plugin [...]
A great plugin for wordpress.
Thanks for the work, great done.
Just was wondering which Wordpress versions this plugin will work with?
Bad news e
ERR s
ve sent up this wordpress template as //rdesgr.com (in Options, General), I added a plug-in today that will make http://www.rdesgr.com count as rdesgr.com … If I understand this redirection correctly. Let me know otherwise, please! The wordpress plugin is enforce-www-preference.php. The author says: 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.
[...] till i found dean lee’s plugin. it’s damn useful. Also look for the WWW preference enforcement at Enforce www. Preference [ Tempus Fugit | TxFx.net ] It converts domain.com requests to http://www.domain.com or vice versa, so it may help you with a little [...]
[...] Simply install the plugin offered at http://txfx.net/code/wordpress/enforce-www-preference/. [...]
[...] enforce-www – Wie gesagt, hier das Plugin um es zu wählen Download [...]
weitergeleitet. Somit wird nur die Domain http://www.tommyholiday.ch von den Suchmaschinen indexiert und es besteht keine Gefahr mehr Double Content zu publizieren. Bei Wordpress setzt man das ganze am besten mit einem kleinen Plugin namens “Enforce www. Preference
First time here on your site. I am delighted to find your wonderful website online. Would you please also visit my homepage?
Great looking site so far!! I’m just starting to look around it but I love the title page! Would you please also visit my site?
[...] The best way to solve this problem is to set a 301 redirect. Sometimes, however, you might find it difficult to get the PHP code working or your server might not support the .htaccess redirect. In that case you can turn to a Wordpress plugin called “Enforce www. Preference”. [...]
Hi there! Your site is cool, indeed! Please visit my homepage too:
Your site looks great! Would you please also visit my site?
Exelent! Good work! Please visit my site too:
Hi people! Great job! Visit my sites, please:
[...] Enfore WWW Preference [...]
[...] ou si vous n’avez simplement pas accès au fichier .htaccess, vous pouvez utiliser le plugin enforce www preference pour Wordpress qui forcera automatiquement l’utilisation de votre adresse avec ou sans www [...]
[...] Enforce www. Preference and 14. Permalink [...]
Nice stuff, this what i’m looking for.
Thanks.
Brilliant plugin, thanks!
[...] using Wordpress, there are a few plugins that are suppose to do this automatically for you, like – Enforce www. Preference ; Wordpress no-www ; [...]
[...] so many times too; I can’t believe I didn’t think to check that out. He linked to a Wordpress plugin that takes care of the www/non-www issue, and it works great. Thanks [...]
[...] www. erzwingen Google ist wirklich pingelig. Wenn man eine Seite im Internet aufruft, dann kann man das auch meist ohne das “www” vorweg. Also z. B. http://wunschkinder.net/blog/. Dann existieren für Google jedoch zwei identische Seiten, die über verschiedene Adressen ereichbar sind und sieht gleich wieder doppelt. Auch dazu gibt es ein Plugin, mit welchem man die Version mit oder ohne “www” erzwingen kann. [...]
[...] about adding code to your .htacces and install this simple plugin: http://txfx.net/code/wordpress/enforce-www-preference/ Reply to this comment Comment by Nate Whitehill 48) { this.width = 48; this.height = [...]
Great Plug-In, thanks a bunch and keep on this good work!
Cheers,
Mic
Good job on this, much respect!
Niklas Lindblad Dagon Design Sitemap Generator 2.7 By Aleister Other Posts From Cat 1.2 By Aleister Close Comment Tags 1.0 By Aleister WP-DBManager 2.10 By GaMerZ Exec-PHP 3.2 By Sören Weber Enforce www. Preference 1.3 By Mark Jaquith Filosofo Hide Email Addresses 0.50 By Austin Matzko Firefox spellcheck 1.0 By Otto Filosofo Uncheck Default Category 1.2 By Austin Matzko Follow URL 1.0 By Angsuman Chakraborty
[...] more info and download…. [...]
[...] kann sich die Sache mit einem Plugin noch einfacher machen: die Plugins no www. Plugin und enforce www. Plugin läsen das Problem automatisch. Gefunden bei [...]
[...] Enforce http://www.Preference [...]
[...] a stupid-simple Wordpress plugin called Enforce www. Preference that does all the work for you, and it even goes one better…it also will strip off index.php [...]
[...] Enforce www. Preference [...]
[...] Visit & Download [...]
re looking at not having to mess around with your 301 redirects or your .htaccess files – then this would be the ideal plugin. Just load it into your plugins folder and activate it. … easy. peasy. The plugin’s mainsite can be found here.
[...] URL” Problem von vorneherein mit einem Plugin zu verhindern. Hierfür nutze ich “Enforce WWW Preference“, da es mir die Wahl lässt, ob der Blog ausschließlich mit oder ohne www erreichbar [...]
Is there support anywhere for this plugin? I installed it. Google can no longer spider my site. I’ve uninstalled it now I still get a message that google cannot find my robots.txt file so still cannot be spidered. Clearly I did something wrong, but I don’t know how to correct it.
[...] Lo so, il titolo non è dei migliori, ma il contenuto del post probabilmente sì.Sempre per quanto riguarda la neonata categoria Bookmark vorrei segnalare un plugin di WordPress molto utile: Enforce www. preference. [...]
[...] Redirect“. Pero kung ayaw nyo naman galawin yung .htaccess nyo pwde nyo naman iinstall ang Enforce www. Preference plugin. Oh dba mas madali yun, [...]
[...] is a very handy plugin written by Mark Jaquith that allows you to redirect to www. with a convenient wordpress plugin. Many people including myself set up their blog and then realise [...]
[...] Enforce or no www. Preference: es wird je nach Einstellung sofort auf die passende Seite mit oder ohne “www.” vorweg umgeleitet vorgestellt von Schnurrecks Welt [...]
nyo na magkaiba yung result kase nga apektado yun. Maayos nyo yan sa pamamagitan ng “301 Permanent Redirect”Â, check nyo ito “How to setup a 301 Redirect”. Pero kung ayaw nyo naman galawin yung .htaccess nyo pwde nyo naman iinstall ang Enforce www. Preference plugin. Oh dba mas madali yun, lol. Pero may ibang host na isa lang ang gamet, at meron naman na pwede pareho. Hahaha. Nagegets nyo pa ba sinasabi ko? Kaya importante na mamili kayo sa isa dyan, may
[...] This can actually be quite the severe problem. You probably know that with your own site, you can type http://www.yoursite.com or just yoursite.com and it will work just fine. However Google, and other powers that be, recognize these to be 2 different domains and each can have its own page rank. They may be lower ranks individually than if you just had one. To that end, Nate Whitehill has a great tutorial, but if that is too intimidating and you have Wordpress, you can download this plugin. [...]
[...] 5. Enforce www. Preference [...]
[...] 5. Enforce www. Preference [...]