Page 1 of 1
htaccess rewiterule
Posted: Tue Jul 17, 2007 6:40 am
by surath
Hi all,
I have a situation to rewrite urls using the htaccess file. the situation is like that, I've to rewrite the url like "
http://www.xyz.com/test/index.php?aId=test" to "
http://www.xyz.com/test/".
Any idea how can I do that...
Thanx in advance
Posted: Tue Jul 17, 2007 8:12 am
by mwasif
RewriteRule ^test/$ test/index.php?aId=test [L]
it's not working
Posted: Tue Jul 17, 2007 8:53 am
by surath
mwasif wrote:RewriteRule ^test/$ test/index.php?aId=test [L]
Thank you very much for the reply. But the bad thing is that it's not working
ohh...may be I'm doing it in a bit wrong way, I've placed it in the test sub-folder..is that right?
Another thing is that, actually situation is like this : "
http://www.xyz.net/aId=<foldername>"
and I want it to appear like "
http://www.xyz.net/<foldername>"..
thank you again
Re: it's not working
Posted: Tue Jul 17, 2007 9:19 am
by volka
surath wrote:ohh...may be I'm doing it in a bit wrong way, I've placed it in the test sub-folder..is that right?
meaning you have this rule in a .htaccess file in <document_root>/test ?
Re: it's not working
Posted: Tue Jul 17, 2007 9:23 am
by surath
volka wrote:surath wrote:ohh...may be I'm doing it in a bit wrong way, I've placed it in the test sub-folder..is that right?
meaning you have this rule in a .htaccess file in <document_root>/test ?
Exactly so...I've placed it in <doc_root>/<sub_folder>/.htaccess
Is that the correct approach?
Or should it be the single .htaccess at <doc_root>?
If you can plz, give the rewriterule....I am trying heartnsoul...but all in vein..
thanking u in anticipation