regex - Need help on Apache htaccess redirect rule -


मुझे पथ से रीडायरेक्ट करना होगा

  / articles / 20090425-स्वाइन फ्लू-मारता है .html  

से

  /2009/04/swine-flu-kills.html  

मूल में पथ, लेखों के बाद अंक yyyymmdd प्रारूप में दिनांक हैं। इसे नए रास्ते में "/ yyyy / mm /" में परिवर्तित करने के लिए।

मुझे लगता है कि कुछ regex की आवश्यकता है, लेकिन मुझे यकीन नहीं है कि कैसे। मदद की सराहना करेंगे धन्यवाद

  पुनर्लेखन नियम / (\ d {4}) (\ d \ d) \ D \ d \ - (। +) $ / $ 1 / $ 2 / $ 3  

बेहतर समाधान होगा।


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -