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
Asked
Active
Viewed 105 times
-1
-
2Please see https://www.addedbytes.com/articles/for-beginners/url-rewriting-for-beginners/ – OneCricketeer Nov 11 '15 at 15:46
-
your favourite search engine would've provided you kajillions of resources – m02ph3u5 Nov 11 '15 at 16:16
2 Answers
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
-
Still doesnt work. look at this link http://www.ezcsgoskins.net/contact.php – Aphrocol Col Nov 11 '15 at 16:25
-
-
Still doesn't work. The href to the page is just contact.php is that good? – Aphrocol Col Nov 11 '15 at 16:28
-
-
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