Archive for htaccess file
Remove Date (Year/Month/Day) in WordPress Permalink URL with htaccess
Posted by
Batool Shamim
(0) Comment
All you need is to go to wordpress dashboard.
- Go Settings -> Permalinks
- Select Custom Structure and enter /%postname%/into the field at bottom.
- Click Save Changes to make the change effective.
- FTP into the WordPress installation, edit the .htaccess file.
- Add following code at the end of the file:
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








