last day (14 days later) » 

1:46 PM
0
Q: Angular JS 1 routing 404 issue

ClarkySmiverz77I have a basic single page application in Angular Js. I have applied routing and set 'Html5Mode' to true. My URL's have been cleaned up, but they now result in a 404 when trying to access the URL. Now this is a front end web application so I do not have any config on IIS I can set up rewrite ...

 
what is the path it shows?
 
This can be found at josephaspey.com
 
it does not show any error
 
from the home page you can access /products. Either try to access this or refresh the page. @Sajeetharan
 
i did the same, it gets routed to products and i see the content as I don't see no dahm products!
 
1:46 PM
ok, well try and access josephaspey.com/products
further digging as led me to this stackoverflow.com/questions/16569841/… but i don't plan on having an server side for this. My project is simply front-end Angularjs which makes http requests to a Web API.
 
yes that works. But if I change the href's to point at '#contact', this will not work
Have you any idea how I can configure my server like discussed in the following
12
Q: angularjs html5mode refresh page get 404

user2625111I've created an app using AngularJS with GAE (Google App Engine – Java). I want to convert it compatible with SEO. index.html <meta name="fragment" content="!" /> <base href="/"> and the body is loaded dynamically through <div ui-view></div>. app.js $locationProvider.html5Mode(true); T...

 
Clarky herE?
try to make < href="josephaspey.com/" /> it will work for you i think....
 
@OmriLugasi what do you mean by that? Also joseph.aspey.com is just my test domain for when i run in situations like this.
 
yes, you need to set there what folder you want to enter when you click on "home" , "profile" and more....
so for this site you need to put < href="josephaspey.com/" /> @ClarkySmiverz77
 
2:02 PM
but why, I soon will be changing the location this is hosted, and it will then not work on my localhost
 
yes i know, i really don't know why it does that but, its a solution....
when you upload the files just change it to your address site
"Ok, so index.html is at the route of the project. the rest of the pages are as follows "app/components/x/x.html"

so it should be something like
<base href="http://josephaspey.com/"/>
 
2:17 PM
@OmriLugasi I'll give it a go and get back to you
@OmriLugasi This doesn't seem to work.
 
2:35 PM
ok, new option please provide the console error messages and your url ( in image please).
 

last day (14 days later) »