react-route browserHistory apache配置

添加apache的.htaccess文件,文件内容为:



RewriteEngine On
RewriteBase /
RewriteRule ^index.html$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.html [L]

你可能感兴趣的:(react-route browserHistory apache配置)