-1

Here is my site: http://www.ezcsgoskins.net/ as you can see the index.php is already removed from my url but how can I do this with every page if you click on support at the left bar you'll see in the URL is support.html

2 Answers2

0

You need to use .htaccess to have clean URL

RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ $1.php [QSA,L]

Obviously if you have *.html pages you will need to change them to .php or create another RewriteRule for it.

Source from here

André Ferraz
  • 1,511
  • 11
  • 29
0

.htaccess

RewriteEngine On 
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([^\.]+)$ $1.php [NC,L]
RewriteRule ^([^\.]+)$ $1.html [NC,L]

source http://alexcican.com/post/how-to-remove-php-html-htm-extensions-with-htaccess/

Remember remove extensions from a tags href like.

<a href="/support">support</a>
CreativeCreator
  • 220
  • 1
  • 9