regex - redirect url to another url using htaccess -


मेरे पास एक url http://example.com/xyz/ है, और मुझे यह चाहिए Url as http://example.com/xyz xyz केवल उदाहरण के लिए है, यह कुछ भी हो सकता है क्रिप्या मेरि सहायता करे। आपकी सहायता का आभार होगा। पहले ही, आपका बहुत धन्यवाद।

अनुगामी स्लैश हटाने के लिए आप इस नियम को अपना पहला नियम के रूप में उपयोग कर सकते हैं:

  RewriteEngine RewriteCond पर% {REQUEST_FILENAME}! -d रिक्राइटकॉन्ड% {THE_REQUEST} \ s (। +?) / + [? \ S] RewriteRule ^ (। +?) / $ / $ 1 [आर = 301, एल]  

Comments

Popular posts from this blog

scala - Play Framework - how to bind form to a session field -

c++ - Why does Visual Studio Release build break on non-executing code line -

Firefox reacting to JQuery setTimeout that doesn't apply -