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

python - rpy2 import is not working -

c++ - How to load a bitmap from file into the samples buffer -

javascript - How to get MySQL query result returned using $.ajax -