Jump to content

.htaccess Redirection Problem


HungryMind

Recommended Posts

# 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

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

I think it was meant for success to be bestowed upon wirehopper... (like a prayer of thanks)

Link to comment
Share on other sites

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

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

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

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

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...