.htaccess rewrite rule conflict -


kindly me out rewriterule... question have link have make clean , made it, when apply same rewriterule other link data dont display.. example:

link 1 : localhost:8080/domain/index.php?subj=about_us wrote rule.. rewriterule ^(.*).html/?$ index.php?subj=$1 [nc,l]

link 2 : localhost:8080/domain/brands_content.php?brand=about_brand wrote rule.. rewriterule ^(.*).html/?$ brands_content.php?brand=$1 [nc,l]

first link rule perfect , getting clean links, second link rule not working, page loaded no content....

waiting ur kind responce....

(answer revised second time per our exchange in comments)

first, don't use l flag, because you're telling apache "last" rule, , stop processing.

second, still bit difficult me understand goal here. until/unless can describe actual goal better, i'm afraid can't help. here few options, perhaps can pick one?

option one:

you want users click navigation link src of "index.php?subj=about_us", , have them go page, have url bar "about_us.html".

option two:

you want users click navigation link src of "index.php?subj=about_us", , have them go actual page "about_us.html", still "index.php?subj=about_us" in url bar.

option three:

you want users click navigation link src of "about_us.html", have them go actual page "index.php?subj=about_us" , see "index.php?subj=about_us" in url bar.

option four:

you want users click navigation link src of "index.php?subj=about_us", have them go actual page "about_us.html" , see "about_us.html" in url bar.

if can tell me of these closest goal, i'll make 1 more attempt you. :)


Comments

Popular posts from this blog

jquery - Invalid Assignment Left-Hand Side -

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -