HungryMind Posted July 11, 2010 Share Posted July 11, 2010 # Please Guide! What Should I Do To Solve This Problem :SOptions +FollowSymlinksRewriteEngine on# This Command Is Working WellRewriteRule ^uae/ /country/# But This Command Not Works, If First Command Is Set And First Command Works Here With This URL Too.RewriteRule ^uae/dubai/ /country/city/# Sorry! For Bad English :S Link to comment Share on other sites More sharing options...
wirehopper Posted July 12, 2010 Share Posted July 12, 2010 Options +FollowSymlinksRewriteEngine onRewriteRule ^uae/dubai/ /country/city/ [L]RewriteRule ^uae/ /country/ Link to comment Share on other sites More sharing options...
HungryMind Posted July 12, 2010 Author Share Posted July 12, 2010 Hi!OMGGG It's Working Awesome Mr. wirehopperThnakyou Soo Soo Much :)GOD ALWAYS GIVE U SUCCESS IN YOUR LIFE.Thnx & Regards: Hungry Mind (http://hungrymind.tk/) Link to comment Share on other sites More sharing options...
chibineku Posted July 12, 2010 Share Posted July 12, 2010 In this instance, wirehopper gave the success - credit where it's due.I should add that a theological debate would be futile and a waste of server space, I just wanted to be glib this one time. Link to comment Share on other sites More sharing options...
thescientist Posted July 12, 2010 Share Posted July 12, 2010 I think it was meant for success to be bestowed upon wirehopper... (like a prayer of thanks) Link to comment Share on other sites More sharing options...
HungryMind Posted July 14, 2010 Author Share Posted July 14, 2010 My .htaccess File Is Not Working With My Local Servers :SI've Used Wamp, Xamp, EasyPHPCan Anyone Please Tell Me How Can I Configure My .htaccess With My Project.And I Where Should I Place .htaccess File?I've 2 Folders 1) www 2) MyProject.Should I Place .htaccess Under www Folder Or Under MyProject Folder?Plz Guide Me... Link to comment Share on other sites More sharing options...
Synook Posted July 15, 2010 Share Posted July 15, 2010 The .htaccess configuration file should go in the directory you want it to apply to, or some ancestor of it. Link to comment Share on other sites More sharing options...
HungryMind Posted July 15, 2010 Author Share Posted July 15, 2010 Hi!Im Using Wamp Server.Directory Name: "Testing"Using .htaccess In It.xxxxxxxxxxx.htaccess Code:# I Just Write This Line & Getting Error :SRewriteEngine on xxxxxxxxxxxxerror:Internal Server ErrorThe server encountered an internal error or misconfiguration and was unable to complete your request.Please contact the server administrator, admin@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.More information about this error may be available in the server error log.xxxxxxxxxxxurl:http://localhost/Testing/xxxxxxxxxxPlease Guide. Link to comment Share on other sites More sharing options...
Synook Posted July 16, 2010 Share Posted July 16, 2010 Do you have mod_rewrite installed? Link to comment Share on other sites More sharing options...
HungryMind Posted July 16, 2010 Author Share Posted July 16, 2010 Thanku So Much "Synook" Now Itz Done, Wow :)GOD ALWAYS GIVE U SUCCESS IN YOUR LIFE TOO Link to comment Share on other sites More sharing options...
HungryMind Posted July 20, 2010 Author Share Posted July 20, 2010 Hi!Another Problem :SPlease Help!// Output Should Be: FLOWERS-UAEhttp://www.flowergiftsdelivery.com/flowers-uae/// Output Should Be: BUNCH OF ORCHIDShttp://www.flowergiftsdelivery.com/flowers...nch-Of-Orchids/But Both Links Are Working Same...Either!I've Tested .htaccess Command With Different URLs & That Working PerfectTest URLs:http://www.flowergiftsdelivery.com/My-Test1/http://www.flowergiftsdelivery.com/My-Test1/My-Test2/And Both These Testing URL's Are Working Perfect With It's URLs, But Not Original URLs .htaccess Commands:# Original URLsRewriteRule ^/flowers-uae/Bunch-Of-Orchids/ /flowers/Bunch-Of-Orchids/ [L] # Not WorkingRewriteRule ^flowers-uae/ /flowers/ # Working Perfect# Testing URLsRewriteRule ^My-Test1/My-Test2/ /Server-Test1/Server-Test2/ [L] # Working PerfectRewriteRule ^My-Test1/ /Server-Test1/ # Working Perfect Link to comment Share on other sites More sharing options...
wirehopper Posted July 20, 2010 Share Posted July 20, 2010 RewriteRule ^/flowers-uae/Bunch-Of-Orchids/ /flowers/Bunch-Of-Orchids/ [L] # Not WorkingTry removing the first slash, so it would be ^flowers-uae Link to comment Share on other sites More sharing options...
HungryMind Posted July 20, 2010 Author Share Posted July 20, 2010 Hi!OMG! Thanks Alottt My Friend "wirehopper" Once Again...You Are Awesome Man...MAY GOD ALWAYS GIVE U SUCCESS IN YOUR LIFEGOD HELPS THOSE WHO HELP THEMSELVES Link to comment Share on other sites More sharing options...
HungryMind Posted July 20, 2010 Author Share Posted July 20, 2010 Hi!1 More Question Please...I Have These Three Links...RewriteRule ^flowers-uae/bunch-of-orchids/ /action/product.php [L]RewriteRule ^flowers-uae/ /action/all-products.phpRewriteRule ^uae/ /action/all-categories.phpCan I Manage These Links Like e.g:RewriteRule ^(anything)-(anything)/(anything)/ /action/product.php [L]RewriteRule ^(anything)-(anything)/ /action/all-products.phpRewriteRule ^(anything without dash sign)/ /action/all-categories.phpPlease Guide... Link to comment Share on other sites More sharing options...
wirehopper Posted July 20, 2010 Share Posted July 20, 2010 RewriteRule ^(anything)-(anything)/(anything)/ /action/product.php [L]RewriteRule ^([^\-]+)\-([^\-]+)/([^\-]+)/ /$1/product.php [L]The $1 would be the contents of the match from the first set of parentheis Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.