Hi, i have mod rewrite for all my rules installed but links are not redirected. Please help me redirect them, here is small part of my .htacces RewriteRule ^news\.html /index.php?ind=news [L] RewriteRule ^news\-section\-([0-9]*)\.html /index.php?ind=news&op=news_show_category&idc=$1 [L] RewriteRule ^news\-section\-([0-9]*)-([0-9]*)\.html /index.php?ind=news&op=news_show_category&idc=$1&order=&st=$2 [L] RewriteRule ^news\-([0-9]*)\.html /index.php?ind=news&op=news_show_single&ide=$1 [L] RewriteRule ^news\-submit\.html /index.php?ind=news&op=submit_news [L] RewriteRule ^news\-addnews\.html /index.php?ind=news&op=reg_data [L] RewriteRule ^news\-editnews-([0-9]*)\.html /index.php?ind=news&op=update_news&idnews=$1 [L] RewriteRule ^news\-search\.html /index.php?ind=news&op=search [L] RewriteRule ^news\-searchresult\.html /index.php?ind=news&op=result_search [L] RewriteRule ^news\-edit\-([0-9]*)\.html /index.php?ind=news&op=edit&idnews=$1 [L] RewriteRule ^news\-delete\-([0-9]*)\.html /index.php?ind=news&op=delete&idnews=$1 [L] RewriteRule ^news\-comment\-([0-9]*)\.html /index.php?ind=news&op=submit_comment&idnews=$1 [L] PHP: I have try to change [L] to [R=301,L] but it didnt work, any other ideas? Changing that it redirects rewriten urls to dynamic urls. So i need to redirect dynamic urls to static urls. Example: /index.php?ind=news&op=news_show_single&ide=$1 to /news-1.html
Maybe my problem is not apache, maybe i need php redirects or something. I know how to redirect 1 page to 1 page, but i dont know how to redirect dynamic links, like when i write a new story on my website it receives its own number and have id=THAT NUMBER .... i use mod rewrite so it looks like news-that number.html and this page is active, but if someone gets on dynamic page (id=that number) it is not redirected to .html page. Hope this makes clear and i really hope anyone out there can help me or at least direct me where could i find solution for this, i have search this topic up and down and see almost same cases but none of that solutions work for me...