Archive for htaccess file

Remove Date (Year/Month/Day) in WordPress Permalink URL with htaccess

Posted by (0) Comment

All you need is to go to wordpress dashboard.

  1. Go Settings -> Permalinks
  2. Select Custom Structure and enter /%postname%/into the field at bottom.
  3. Click Save Changes to make the change effective.
  4. FTP into the WordPress installation, edit the .htaccess file.
  5. Add following code at the end of the file:

Mak's wordpress tips that work

For existing permalinks with /%year%/%monthnum%/%day%/%postname%/:
# BEGIN Permalink Change
<IfModule mod_rewrite.c>

RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_URI} !^/?(upload)/
RewriteRule ^([0-9]+)/([0-9]+)/([0-9]+)/(.*)$ /$4 [R=301,NC,L]
</IfModule>
# END Permalink Change Read More

Categories : WordPress Tags : , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,