friendly URLS - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: Other (
https://sampforum.blast.hk/forumdisplay.php?fid=7)
+--- Forum: Everything and Nothing (
https://sampforum.blast.hk/forumdisplay.php?fid=23)
+--- Thread: friendly URLS (
/showthread.php?tid=265112)
friendly URLS -
DirtyLilFreak - 29.06.2011
guys I have a website with some html docs and I want to create links so that when I type 'http://mydomain.com/news'
which will direct to 'http://mydomain.com/news.html' an idea how I can do this?
Re: friendly URLS -
*IsBack - 29.06.2011
I think with htaccess - ModRewrite
Re: friendly URLS -
DirtyLilFreak - 29.06.2011
ok I understand that but how do I use it? :/
Edit: I solved it using this on htaccess:
Код:
RewriteEngine on
RewriteCond %{REQUEST_fileNAME} !-d
RewriteCond %{REQUEST_fileNAME} !-f
rewriterule ^(([^/]+/)*[^./]+)/?$ /$1.html [L]