Jump to content


Photo

mod_rewrite simple problem


  • Please log in to reply
No replies to this topic

#1 hhhhhhh

hhhhhhh
  • Members
  • Pip
  • Newbie
  • 3 posts

Posted 25 October 2005 - 03:08 AM

i have this direction "blog.php?id=1" and i wanted to change it to "blog1.html" - DONE!

i have this direction "show.php?link=something-new-is-going-on&foto=1" and wanted to change it to "foto-something-new-is-going-on-1.html" - CAN't DO IT!

i must say that "something-new-is-going-on" is a link which varies, it might be as well "something-good" or "old-kids"

the code i've put in htaccess is

Options +FollowSymLinks
RewriteEngine on
RewriteRule blog(.*)\.html$ /blog.php?inregistrare=$1
RewriteRule foto-(.*)-(.*)\.html$ /show.php?link=$1&foto=$2





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users