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
htaccess rewiterule
Moderator: General Moderators
it's not working
Thank you very much for the reply. But the bad thing is that it's not workingmwasif wrote:RewriteRule ^test/$ test/index.php?aId=test [L]
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
meaning you have this rule in a .htaccess file in <document_root>/test ?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?
Re: it's not working
volka wrote:meaning you have this rule in a .htaccess file in <document_root>/test ?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?
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