[Solved] .htacces – how to use [closed]

[ad_1]

Basically, and simple if you were to rewrite

www.site.com/news.php?id=123 to
www.site.com/this_is_news_title

You should create a file called .htaccess and put it inside your htdocs folder and write in it the following

Options +FollowSymLinks -MultiViews
# Turn mod_rewrite on
RewriteEngine On

RewriteBase /

RewriteRule ^news/([0-9]+)/.*$ /news.php?id=$1 [QSA,L,NC]

Try it and play around with it.

[ad_2]

solved .htacces – how to use [closed]