http://localhost/omsi_site/blogs.html?title=Responsive%20web%20design
I want to remove blogs.html?title=
from this url using htaccess.
http://localhost/omsi_site/blogs.html?title=Responsive%20web%20design
I want to remove blogs.html?title=
from this url using htaccess.
With this code your path will be /blogs
:
RewriteEngine On
RewriteBase /omsi_site/
RewriteRule ^blogs$ blogs.html?title=Responsive%20web%20design [L]
•Log into your cPanel.
• Find the Files category and click on the File Manager icon.
• In the top right hand corner, click on Settings. For the primary domain, click on the Web Root radio button. For addon domains, click on the dropdown and find your desired addon domain name. Be sure the checkbox next to Show Hidden Files is checked. Click the Save button to return to the main File Manager screen.
• You should now be in the root folder of the domain you chose. Look for the .htaccess file and right click on it. This brings up a menu. Find and click on the Edit option. If you get a popup box, simply find and click the Edit button in the lower right corner to continue to the editor.
• You are now in the text editor
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.php -f
RewriteRule ^(.*)$ $1.php
Paste the code and save !