Last active
March 12, 2023 12:25
-
-
Save jxnblk/6137537 to your computer and use it in GitHub Desktop.
.htaccess for using AngularJS's in HTML5 mode on Media Temple
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Options +FollowSymLinks | |
<ifModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteCond %{REQUEST_URI} !index | |
RewriteRule (.*) index.html [L] | |
</ifModule> |
Same here, refreshing works only for first level of path (/articles
works, /articles/article-slug
not working).
This works fine, but i get errors in the console
Failed to parse SourceMap: URL/vendor/reflect-metadata/Reflect.js.map
Failed to parse SourceMap: URL/vendor/@angular/core/src/metadata.js.map
etc.
How can i exclude them
Hello , I have same problem as well.
I have route app/dashboard
redirect from my login page(index).
When the user is logged in it redirects to app/dashboard
, the route perfectly shows but
when I refresh the page it returns 404 `The requested URL /dashboard was not found on this server.``
Any insights pls?
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello,
For simple link it's working fine ex." http://clean-blog.dev/about " but ex. for this link: " http://clean-blog.dev/page/2" only on refresh doesn't work.
Any suggestion?