apache - htaccess Redirect a Specific Directory URLs to another different URL? -


.htaccess के साथ से रीडायरेक्ट कैसे करें:

  • under apple.example.com/old_folder जो भी गहराई - & gt; से :

    • .. केवल?

      मैंने निम्नलिखित कोड का उपयोग किया है, लेकिन काम नहीं कर रहा है:

        रीवरइटएन्गइन ऑन रीराइटकॉन्ड% {HTTP_HOST} ^ apple.example.com / old_folder $ RewriteRule ^ (। *) $ Http://banana.example.com/new_folder/ [आर, एल]    

      आप RewriteCond% {HTTP_HOST} में यूआरआई से मिलान नहीं कर सकते हैं apple.example.com :

        RewriteEngine पर RewriteCond% {HTTP_HOST} ^ सेब के रूट से कार्य करना चाहिए। \ .example \ .com $ [NC] RewriteRule ^ old_folder (/ | $) http://banana.example.com/new_folder/? [आर, एल]   

      संपादित करें: या फिर /old_folder/.htaccess में इस नियम का उपयोग करें:

        RewriteRule ^ http://banana.example.com/new_folder/ पर पुनर्लेखन इंजन? [आर, एल]    

Comments

Popular posts from this blog

python - how we can use ajax() in views.py in django? -

matlab - Using loops to get multiple values into a cell -

python - Sequence Pattern recognition with Pybrain -