how to write redirect rule in .htaccess

Avatar
  • Answered
current url
http://www.mywebsite.in/blog_pg_tmplt.php?b_id=Business-Intelligence-(BI)-and-how-it-is-useful-for-Common-Man
The rewritten URL:
http://www.mywebsite.in/Business-Intelligence-(BI)-and-how-it-is-useful-for-Common-Man.html
mywebsite = lanterntechnologies
#RewriteEngine On
#RewriteRule ^([^/]*)\.html$ /blog_pg_tmplt.php?b_id=$1 [L]
#RewriteCond %{QUERY_STRING} blog_pg_tmplt.php?b_id=([^&]+)
#RewriteRule blog111.php /blog_pg_tmplt.php?b_id-%1 [L,R]
#RewriteRule ^product-([0-9]+)\.html$ product.php?id=$1
RewriteRule ^blog-([0-9]+)\.html$ blog_pg_tmplt.php?b_id=$1
tried all none is working
any help will be great
thank you
Avatar
Scott
Hello, Thank you fory our question on writing a redirect rule. While we cannot give specific coding solutions, youcan find instructions on how to create redirects in our article on etting up 301 Redirects in htaccess. Kindest Regards, Scott M