avvllvva Posted April 14, 2009 Share Posted April 14, 2009 Hi, The url rewriting is not functioning with my server, I need to change "current url" to "required url" as shown below Current url : http://www.mydomain.com/seo/scripts/scriptname.php?article_id=45&article_name=noop Required url : http://www.mydomain.com/seo/scripts/scriptname-article_id-45-article_name-noop.html .htaccess file content Options +FollowSymLinks RewriteEngine on RewriteRule scriptname-article_id-(.*)-article_name-(.*)\.html$ scriptname.php?article_id=$1&article_name=$2 Server details Linux hosting mod_rewrite module is loaded These are the details and I have also tested the .htaccess file is functioning well with some other codes in the server. So, anybody can help me, where is the problem ?????? Thanks Quote Link to comment https://forums.phpfreaks.com/topic/154035-solved-mod_rewrite-on-apache-with-htaccess/ Share on other sites More sharing options...
Mehraban Posted April 15, 2009 Share Posted April 15, 2009 lets remove the line and check it this line from htaccess Options +FollowSymLinks then let me know Quote Link to comment https://forums.phpfreaks.com/topic/154035-solved-mod_rewrite-on-apache-with-htaccess/#findComment-811026 Share on other sites More sharing options...
avvllvva Posted April 16, 2009 Author Share Posted April 16, 2009 Its get solved.......I have tried some other urls, and now they are working perfect including the line 'Options +FollowSymLinks' .htaccess Options +FollowSymLinks RewriteEngine on RewriteRule ^product/([^/\.]+)/?$ product.php?id=$1 [L] RewriteRule ^localnews/ localnews.php thanx Quote Link to comment https://forums.phpfreaks.com/topic/154035-solved-mod_rewrite-on-apache-with-htaccess/#findComment-811212 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.