Jump to content

mod_rewrite simple problem


hhhhhhh

Recommended Posts

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

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.