...

View Full Version : mod_rewrite working fine, just a question o two



olidenia
02-02-2011, 02:11 AM
Hi to all!

Begining to use mod_rewrite and loving it, I have a small/large bug, I need some help.

My url's looked like this before: localhost/dnl/?lang=en&p=home

And now they look like: localhost/dnl/en/home.php

The problem is that i have functions called on the home page, for example localhost/dnl/?lang=en&p=home&edit=true and I could edit something but now localhost/dnl/en/home.php?edit=true is not working.

I have a feeling i'm doing it wrong. but don't know where.
This is my .htaccess file:


<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule ^([a-z]+)/([-a-z_]+).php /dnl/index.php?lang=$1&p=$2


</IfModule>


my url

olidenia
02-02-2011, 03:18 AM
I found, that this works fine:

I added: [QSA,L] at the end and now localhost/dnl/en/home.php?edit=true works fine, the only thing, it would be cool to make it like this localhost/dnl/en/home.php,true



<IfModule mod_rewrite.c>
RewriteEngine on
RewriteBase /

RewriteRule ^([a-z]+)/([-a-z_]+).php /dnl/index.php?lang=$1&p=$2 [QSA,L]
</IfModule>



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum