How to clean url wordpress


Staff member
I'm using wordpress for a site,

this url before
i want url like this

I have tried copying parts of WordPress' .htaccess, however shows a 404 error.

My .htaccess file looks like:

# BEGIN WordPress
 <IfModule mod_rewrite.c>
  RewriteEngine On
  RewriteBase /
  RewriteRule ^index\.php$ - [L]
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule . /index.php [L]
# END WordPress

Any ideas on where to start and how to accomplish what I'm looking for?