I'm having issue with my url..i actually was trying to remove # tag from my url..which is done but the problem is now if i'm having url like this
http://localhost/xyz
it redirects me to
http://localhost/xyz/home
but the if i try and refersh the same page
http://localhost/xyz/home
it gives 404
any one knows how to solve it..
Thanks.
so actually now i'm able to open http://localhost/xyz/home directly with url rewrite which will point to my index.html.but now the bigger issue is whenever i'm trying to run my project it says unable to start debugging and none of my service is getting called it says 405(metod not allowed).i tried iisrest.but no luck.
so if you have any ideas,please share and thank you.
Related
I am serving a R app using ShinyProxy with default configurations. When there is an error, the default error page exposes a lot of information about what caused the error. I would like to replace the error page, but cannot figure out where to find the HTML that creates the error message.
There is a git repo https://github.com/openanalytics/shinyproxy-config-examples/tree/master/04-custom-html-template shows how to change html for log in and the index page, but i cannot seem to find the error- does anyone have any suggestions?
Maybe this will help: https://www.tutorialspoint.com/adding-404-page-in-express
and you can replace res.send('<h1> Page not found </h1>'); with res.sendFile(pagedir);
I am in the process of deploying a dynamic, React.js app to Heroku and wanted to test it out by using 'heroku local' to see if it works before pushing it to Heroku. Everything seemed to be working fine with the server - my database console.log message logs to the terminal signifying everything is going well - but when I try to access the website which is on localhost:5000, I get an error message of 'Cannot GET /' and the console prints a message saying , 'Failed to load resource: the server responded with a status of 404 (Not Found)'. My React.js files are all within the build folder which in conjunction with all of the other files, were pushed to git and commited, but for some reason my files are not showing up. I would greatly appreciate if someone could help me determine what went wrong. Sorry if my question is a little vague; please let me know if I can clarify something in better detail as I am fairly new to programming.
I've added a proxy to one of my package.json files to help with url routing; possibly this could be causing the issue?
Also, if it helps at all, a photo of my folders within Visual Studio code are listed below:
I have this route defined $route['download/(:num)/(:any)'] = 'download/index/$1/$2';
What I want is, mydomain.com/download/444/filename.mp3. Now problem is when I pass the url without extension .mp3 it works fine, but when I give url with .mp3 it shows 404 of nginx. i.e.
mydomain.com/download/444/filename.mp3 ERROR
mydomain.com/download/444/filename SUCCESS
You can try this solution for your problem:
$route['download/(:num)/([a-zA-Z0-9.a-zA-Z0-9]+)'] = 'download/index/$1/$2';
I Hope it will help you.
Please keep in mind, I have not worked with angular JS, nor did I write the code that is causing the error.
I am getting an 404 error on this path:
https://www.helivalues.com/Su6UsWuf/bb/option/mfg/all
but not this path:
http://www.helivalues.com/Su6UsWuf/bb/option/mfg/all
It was noticed that when a user views a certain page in https, the drop down does not load options. Angular Js makes a call to the path mention above which is not an actually file but is used by a php file that based on this path, has a switch that fills in the drop down.
Any ideas on how to get the https version to work? This is on a joomla site and I do have access to the htaccess file if needed. I really just need it to work for a few months while I work on building a new site.
Thanks!
Angularjs is not the issue. Your webserver (Apache/2.2.15 (SuSE) Server at www.helivalues.com Port 443) states the file can not be found. So it looks like something is misconfigured with your apache site.
I'm pretty new to Cake, so I tryed to start with the blog tutorial.
I installed CakePHP 2.3.8 in webroot.
Configured SQL and deleted all 3 .htaccess-files, cause i have no mod_rewrite. In core.php I activated
Configure::write('App.baseUrl', env('SCRIPT_NAME'));
I created the Posts-Model, Controller and the index-View like the tutorial says.
The APP/View/Pages/home.ctp tells me, everything's allright.
But when i try to open /posts/index i get a 404. Why?
Without mod_rewrite the urls look like www.example.com/index.php/controllername/actionname/param, i.e. in your example you have to call /index.php/posts/index (or /index.php/posts/).