Skip to content

WordPress Permalinks

I’m making a settings change to all my wordpress installs to remove “…/index.php/…” from the URLs of pages. Back when I used to host my site on windows and IIS I didn’t have a good way to do URL rewrites at the time (or I just didn’t spend the time to find out how to do it because I know it can be done). Now all my sites are hosted from a 1and1 Linux server and I can just add an .htaccess file to the root of each of my sites. I was happy to find out that this doesn’t break any old links because it’s just redirects people to the new links. Note: The first line of the file tells 1and1 to use PHP5 instead of its default to use PHP4.


AddType x-mapp-php5 .php

# BEGIN WordPress

RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ – [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

# END WordPress

WordPress Permalink Setting


Post a Comment

Your email is never published nor shared. Required fields are marked *