PHP Static Url Rewrite
Linux, Apache, MySQL, PHP
1
Posts
1
Posters
0
Views
1
Watching
-
Hi people, I'm fairly new to php and I would like to know how to rewrite a static url to a friendly url. E.g. Rewrite: - http://site.domain.com/**buy\_products.html** to - http://site.domain.com/**buy-products** or /index.html to /home I tried this and did not work:
Options +FollowSymlinks
RewriteEngine On
RewriteBase /
RewriteRule ^home index.html
RewriteRule ^wine-range wine_range.htmlI will appreciate your help. I've googled and the examples I come across are mostly converting dynamic urls to static. Regards, Morgs