How to use reverse proxy in asp.net web config - url-rewriting

i have redirected my url But the url which i have redirected in that page nothing is showing , I am so confused and depressed now .
I have created url like a sub domain , sub domain url is creating but in that url the page is not found error shows i am tired now .
i think using reverse proxy i can show a data In that url

Related

Generate route url from subdomain to the main domain

I have a multi-tenant app. So let's say I have test.app.com and app.com. I can successfully navigate from app.com to test.app.com but I am unable to the opposite.
I tried wrapping the routes of my app.com inside a Route::domain() but that only gives me a 404 error instead of actually redirecting it to the url
EDIT: Just to make sure, I want to redirect using a relative path (with the route() method).

Spring\Tomcat redirect to angular page on 404 error

I have an application written in Spring (rest api) and deployed on Tomcat. On the same context exists angular 4 application using this api. I would like to redirect all 404 errors to error page in angular app. I managed to redirect all url in pattern \app\#\some\url by using appropriate angular route. But this those not help with url like \app\some\url which are not handled by angular. In case of such url Tomcat returns it's default page. I managed to redirect all 404 error to angular main page by using following code in web.xml file.
<error-page>
<error-code>404</error-code>
<location>/</location>
</error-page>
But when I changed / for /#/404 (error page form angular app) and tried to access non-existent url I just get blank page instead of redirection. Is there a way to configure my app or server to redirect to this error page? Or do I have to copy this page and put it in WEB-INF so I can use it as static page? I would like to avoid second option as in this case I have to duplicate this page and in case of changes remember about both of them.
1) Using hash # in URLs will solve your problem.
2) Another solution would be to have a rewrite rule on your Apache or ngnix servers so that they redirect to index everytime.
it is because in web.xml,the location it's to track down the file. So the value you put in here must be a file path.
My perspective, you can use a jsp to redirect the user into the actual uri path /#/404.

Magento 1: Ajax URL returns 404 in a custom module when moved site to another server

I'M bit new to Magento development.
I just moved website to another server and the ajax call start return 404.
Could you please help me how to debug or resolve this issue ?
Orignal site (working fine)
Click on any product here in shop now section
Website URL: https://mastermindcrate.com/
Ajax URL is : https://mastermindcrate.com/waytwoexpert/index/getProductDetail
Moved Site (Error exist here)
I moved site to : http://yasirjamal.com/demo/mastermind-new/
Ajax URL is: http://yasirjamal.com/demo/mastermind-new/waytwoexpert/index/getProductDetail
When i click on any product shop now section here it returns 404 see screenshot here:
You have to remove index.php from secure frontend url otherwise you have to use index.php in your url to access specific route
For eg.
http://yasirjamal.com/demo/mastermind-new/index.php/waytwoexpert/index/getProductDetail

Url is working but it's giving page not found error when i check that in websiteoptimization

while validating my application urls in websiteoptimization or facebook, some urls are giving 404 page not found error. But while trying that url in browsers it's working fine.
Url which is causing this problem url . Please let me know what could be the actual problem with this url.

MVC Routing / HostHeader does not work when I use RequireHttps

I'm currently experiencing an issue whereby my MVC site is not responding correctly using IIS 6.
I've setup a url as http://mysite.co.uk which automatically redirects to the correct MVC home page. As the site contains sensitive information I have added the [RequireHttps] attribute to each controller class to automatically redirect the browser to an https url of https://mysite.co.uk which works correctly.
When I access the site as http://www.mysite.co.uk the site correctly redirects to https://www.mysite.co.uk/Default.aspx but it then responds with
Bad Request (Invalid Hostname)
It looks like any time I use www. as part of the url it fails to respond but I have a hostheader setup as www.mysite.co.uk under the IIS website. Is there anything in particular I need to do to make MVC understand the www. part of the url in terms of routing?
Thanks,
Brian.
IIS 6 doesn't add ssl host headers as you think it would. see my article at:
http://completedevelopment.blogspot.com/2009/06/multiple-host-headers-ssl-and-wcf.html

Resources