Hello guys. I have a problem: I want to hide extension of file in url. After entering in /cat/file i wanna show file.php but i want to have cat/file in url field /cat/file. How to do it in htaccess? Something like this: www.jor.pl/hosting - we see file hosting.html, but we have in url field (in our browser) jor.pl/hosting (the extension is hidden). Thanks for help
wont it do that naturally if you call the file index.html after all, if you wont see the extension then the "keyword" style url wouldnt help anyway, so index.html should/does work fine
No, on my server it isn't work naturally (i don't want do do it with index.php only, but with all the files. Anybody knows how to do it in htaccess ? :|
Options +Indexes Options +FollowSymlinks RewriteEngine on RewriteBase / RewriteRule ^cat/([^.]+)$ cat/$1.html [L]