RewriteEngine On
RewriteRule ^newsalert/([a-z_]+)/([a-z]+)/([0-9]+)/([0-9]+)$ index.php?option=$1&view=$2&id=$3&catid=$4 [L]
That’s fine. The Joomla content was because I was fooled by the first responder’s comment. If that’s your only mod_rewrite, there should be no problem.
Second, you don’t show your whole mod_rewrite code so we have no idea of the order. If your code is before Joomla’s, then it’ll be altered by their code to display the index.php script. If not, then your code will likely never be executed.
Thanks for your reply. Please check my entire mod_rewrite code below. Please note that I am rewriting the url only for one page.
RewriteEngine On
RewriteRule ^newsalert/([a-z_]+)/([a-z]+)/([0-9]+)/([0-9]+)$ index.php?option=$1&view=$2&id=$3&catid=$4 [L]
One more thing I could not understand what you meant to say by “If your code is before Joomla’s, then it’ll be altered by their code to display the index.php script. If not, then your code will likely never be executed.”