The query string of my webpage looks like this and this shows in the urls now.
board_list.php?ptype=list&code=Breaking_News&idx=5752&page=1
It is really messy, so I've been looking for ways to make them look simpler. So I ended up with creating .htaccess file and uploaded it to root folder of my website where board_list.php is.
RewriteEngine On
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI}.php -f
RewriteRule ^(.*)$ $1.php [L]
RewriteRule ^board/([a-z0-9\-]+)/([a-z0-9\-]+)/([a-z0-9\-]+)/([a-z0-9\-]+)$ board_list.php?ptype=$1&code=$2&idx=$3&page=$4 [L]
Could someone tell me what's wrong with my urls? Thanks in advance :) Have a nice day.