php - Codeigniter in subdomain issue -


मेरे पास वेब सर्वर उपनिर्देशिका में एक CodeIgniter उदाहरण है, www / CI मेरा www / CI / application / config / config.php फ़ाइल इनके साथ कॉन्फ़िगर है:

  $ config ['base_url'] = 'http: //CI.example .com / ';  

मेरे पास एक उपडोमेन ' CI.example.com ' है जो उस सीआई निर्देशिका पर इंगित करता है। मेरा www / CI / .htaccess फ़ाइल इन सूचकांकों में 'index.php' स्ट्रिंग को हटाने के लिए सिर्फ मानक है:

  RewriteBase / RewriteCond $ RewriteEngine पर $ 1! ^ (इंडेक्स \ .php | assets | robots \ .txt | favicon \ .ico) रीव्रैटकॉन्ड% {REQUEST_FILENAME}! -f रिव्रैटकॉन्ड% {REQUEST_FILENAME}! -डी रिक्राइटआर्यूल ^ (। *) $ Index.php? / $ 1 [एल]  

मेरे सीआई एप के अंदर हर यूआरएल जड़ एक को छोड़कर ठीक काम कर रहा है: 'CI.example.com' जब मैं इस एक का उपयोग करने की कोशिश करता हूं, www / .htaccess (ऊपरी, मुख्य डोमेन) में निर्देश लागू होते हैं और यह एक अवांछित व्यवहार में परिणाम होता है ...

क्या आप इस मुद्दे के साथ मदद? अग्रिम धन्यवाद।

क्या आप पुनः लिख सकते हैं ^ ^। () $ / ci / index PHP / $ 1 [L] के बजाय RewriteRule ^ (। ) $ index.php? / $ 1 [एल]


Comments

Popular posts from this blog

apache - 504 Gateway Time-out The server didn't respond in time. How to fix it? -

c# - .net WebSocket: CloseOutputAsync vs CloseAsync -

c++ - How to properly scale qgroupbox title with stylesheet for high resolution display? -