मैं कोणीय और Yii2 को एकीकृत के साथ एक समस्या है मैं 2 भागों है है, जब मैं कोणीय भाग में यूआरएल कॉपी और पेस्ट करता हूं तो मुझे हमेशा 404 त्रुटि मिलती है। कोणीय configYii2 + AngularJS
.config(function($routeProvider, $locationProvider) {
base = '/construct/';
$routeProvider.when(base+':className', {
templateUrl: '/construct/builder',
controller: 'BuilderCtrl',
reloadOnSearch: false
}).otherwise({
templateUrl: '/construct/heroes',
controller: 'HeroesCtrl'
});
$locationProvider.html5Mode(true);
});
तो है, मैं कैसे एचटीएमएल 5 मोड काम में सीधे संपर्क उचित पृष्ठों को देखने के कर सकते हैं? "/ निर्माण/कुछ" जैसे पथ काम नहीं करते हैं। मेरे इनको है:
RewriteEngine on
# If a directory or a file exists, use the request directly
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
# Otherwise forward the request to index.php
RewriteRule . index.php
क्या आप हमें यूआरएल दिखा सकते हैं कि कौन से कोणीय अनुरोध कर रहे हैं और 404 प्राप्त कर रहे हैं ?? एक निर्देशिका नाम या yii2 नियंत्रक नाम 'निर्माण' भी है? – leninhasda