Jump to content

Problems with mod rewrite


xaviergxf

Recommended Posts

hi!

 

  I´m trying to convert the url: http://www.sitesname.com/produtos/9_apple-iphone-3g-8gb-wifi-camera-2mpx-mp3

to

http://www.sitesname.com/detalhes_produto?cod_produto=9

 

I used the following expressions:

 

RewriteEngine On

RewriteRule  ^produtos\/([0-9]+)_([a-z0-9_-]+)$ detalhes_produto.php?cod_produto=$1

 

but it didnt work out. The browser, show a 500 internal server error.

 

Can anyone helps me?

 

Thanks!

 

Link to comment
https://forums.phpfreaks.com/topic/136892-problems-with-mod-rewrite/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.