mod rewrite - Apache mod_rewrite does not work -


im using j2ee application spring framework 2.0 on apache tomcat 5.5. have used url mapping change extension .jsp .htm. have url looks http://www.800promotion.com/promotion.htm?cid=1344159422528120632840257756098788 want change http://www.800promotion.com/1344159422528120632840257756098788 have referred samples of working on mod_rewrite. cant seem working. these lines in .htaccess file. rewriteengine on rewriterule ^([^/.]+)/?$ /promotion.htm?cid=$1 [l]

i have checked host , said mod_rewrite supported on server. not have access httpd.conf file. have verified support allowoverride set all. when hit url page works fine url doesnt mapped. going wrong?

rewriteengine on rewriterule ^(.+)$ promotion.htm?cid=$1 [qsa,l] 

try this


Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -