Rewrite php page

Discuss practical ways rearrange URLs using mod_rewrite.

Rewrite php page

Postby Enrico » Mon Apr 26, 2004 3:05 am

Hi,
sorry for my English!

With mod_rewrite I want rewrite all variable passed
into url .... But I don't know how many are this variable.
In example I have a page:
index.php?test=true ....
.... or is possible to have
index.php?test=true&mouse=disable+

In other words, I don't know how many and which are the variable
sent to the page php

In addition of this question, how I can rewrite all link and path of
images?
When call this page:
blabla.php?variable1=true&variable2=true, etc ....
With mod_rewrite enable appear:
blabla/variable1/true/variable2/true, etc
O.K., this is correct BUT path of images are bad.
Into HTML code I have:
blabla/variable1/true/variable2/true/images/image1.jpg,
in substitution to /images/image1.jpg, but this directory don't exist,
and image aren't display!

A last question is automatic hyperlink rewrite.
How I can rewrite all links into page with new aspect
"http://mysite/blabla/variable1/true/variable2/true, etc ...."

Thanks!

Enrico
Enrico
 

Return to Friendly URLs with Mod_Rewrite

Who is online

Users browsing this forum: No registered users and 16 guests

cron