1

When I refresh page getting error 404-page not found.

Index file

 <base href="/Rushi/sandwichesuk/"/>  

App.js

  $locationProvider.html5Mode(true);
  $routeProvider
  .when('/index1', {
       templateUrl: 'assets/views/index1.html',
       controller: 'index1Controller'
    })   

this is my .htaccess file

RewriteEngine on
# Don't rewrite files or directories
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L]
# Rewrite everything else to index.html to allow html5 state links
RewriteRule ^ Rushi/sandwichesuk/index.html [L]

error:

enter image description here

Ebin Manuval
  • 1,235
  • 14
  • 33
Rushi dave
  • 164
  • 2
  • 6
  • 20

1 Answers1

0

I solve my question

Refrence https://lancelhoff.com/enabling-htaccess-in-apache-on-windows/

and also changes .htaccess file

 RewriteEngine on
 RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} -f [OR]
 RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} -d
 RewriteRule ^ - [L] 
 RewriteRule ^ /Rushi/sandwichesuk/index.html
Rushi dave
  • 164
  • 2
  • 6
  • 20