Skip to main content

Currently writing, involved in startups and cycling around the world.

jaduncan

jaduncan

jaduncan

+JamesDuncan

jaduncan

6923305

11979674

mastodon.cloud/@jaduncan

.htaccess Remove WWW from URL + Directories - Stack Overflow

RewriteEngine on
RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
RewriteRule ^(.*)$ http://%1%{REQUEST_URI} [R=301,QSA,NC,L]

Useful when you want to drop the www, works in any .htaccess.

Tyred but Happy

Writing of unusual levels of greatness.