How to change url format using htaccess file

I have a plugin where in it displays the company details in page using the get method http://megabot/mautonew/company/?company=Abc. I want to make the url look like http://megabot/mautonew/company/Abc. I tried several other links but unable to achieve it. I have my htaccess file as follows in the root folder.

BEGIN WordPress

RewriteEngine On
RewriteBase /mautonew/
RewriteRule ^index.php$ – [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /mautonew/index.php [L]
RewriteRule ^([a-zA-Z0-9_-]+)$ company/?company=$1
RewriteRule ^([a-zA-Z0-9_-]+)/$ company/?company=$1

END WordPress

I tried adding the last two lines in my current htaccess file but unable to get the required url type.

Read more here:: How to change url format using htaccess file

Leave a Reply

Your email address will not be published. Required fields are marked *