url-rewriting

How to change URL on button click without page redirect in asp.net

人走茶凉 提交于 2020-06-23 14:38:42
问题 I have a page similar to this link which list items. All works fine. Just i am not able to rewrite the URL of a page on button clicked at different Levels. EG: when i click on Button "CellPhone" on Level1 div and later on click on Button "BlackBerry" which is on Level2 div then URL must be "www.somesite.com/cellphone/blackberry" and again when i click on Button "cellphone" i must change URL to "www.somesite.com/cellphone" Please can any one suggest me to do the same in asp.net. Note: I am

Issues with Angular 5 URL Rewrite

故事扮演 提交于 2020-06-16 03:52:08
问题 I built an Angular 5 application with two routes. I currently have: Home/DailySummary and Home/Documents. When I publish the application to the server (IIS 6.0 w/ URL Rewrite) and navigate to the Home.aspx page everything runs perfectly and my Routing directs me to DailySummary and Documents if I click those links. The issue I'm having is refreshing or navigating to the page without going to Home.aspx, it directs me to the root folder. I'm certain this has something to do with my URL rewrite

How do you write an htaccess RewriteRule to make my urls work like youtube?

家住魔仙堡 提交于 2020-05-28 12:05:33
问题 I have a php file called index.php, in this file I have a php variable $video which receives its information from a $_GET["v"] request. If I use https://www.example.com/index.php?page=video&v=UnIq3Id I can fill the $video variable. When I write a RewriteRule, which I have tried; #FIRST RULE TRIED RewriteRule ^watch$ index.php?page=video [QSA] #SECOND RULE TRIED RewriteCond %{QUERY_STRING} ^v=(.+) RewriteRule ^watch /index\.php?page=video&v=%1 [QSA,R=301,L] I got these rules from mod_rewrite

HTTP404 for resources when using url rewriting on Istio gateway

限于喜欢 提交于 2020-05-28 04:38:28
问题 I'm trying to deploy a service to a specific url address on AKS. The following yaml let's me access the service at desired address, like xxxx.europe.cloudapp.azure.com/service-a. This works great, i've managed to hide the entire service under desired url: apiVersion: networking.istio.io/v1alpha3 kind: Gateway metadata: name: istio-gateway spec: selector: istio: ingressgateway servers: - port: number: 80 name: http protocol: HTTP hosts: - "*" --- apiVersion: networking.istio.io/v1alpha3 kind:

HTTP404 for resources when using url rewriting on Istio gateway

烈酒焚心 提交于 2020-05-28 04:37:46
问题 I'm trying to deploy a service to a specific url address on AKS. The following yaml let's me access the service at desired address, like xxxx.europe.cloudapp.azure.com/service-a. This works great, i've managed to hide the entire service under desired url: apiVersion: networking.istio.io/v1alpha3 kind: Gateway metadata: name: istio-gateway spec: selector: istio: ingressgateway servers: - port: number: 80 name: http protocol: HTTP hosts: - "*" --- apiVersion: networking.istio.io/v1alpha3 kind:

Azure Web App Angular Not redirecting to www

帅比萌擦擦* 提交于 2020-05-17 06:57:20
问题 I have the following in my web.config <configuration> <system.webServer> <httpErrors errorMode="Detailed" /> <rewrite> <rules> <rule name="Angular" stopProcessing="true"> <match url="^(.*)$" ignoreCase="false" /> <conditions logicalGrouping="MatchAll"> <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" pattern="" ignoreCase="false" /> </conditions> <action type="Rewrite" url="index.html" appendQueryString="true"/> </rule> <rule name="Redirect to www" stopProcessing="true">

htaccess howto rewrite an encoded slash in url

空扰寡人 提交于 2020-05-16 13:55:52
问题 I have URL with an encoded slash ( %2F ) and I cannot get rewrite rules to catch this correctly. My URL is: http://example.com/some-path/description%2Frest-of-description/1101 I've tried rewrites like:- # is the %2F interpreted as a path separator RewriteRule ^some-path/(.*)/(.*)/(.*)$ /property/view?ref=$3 [B,R=301,L] # or is it as an encoded string RewriteRule ^some-path/(.*)%2F(.*)/(.*)$ /property/view?ref=$3 [B,R=301,L] # or even double encoded RewriteRule ^some-path/(.*)%252F(.*)/(.*)$

URL Encoding with Underscores in a Directory Name?

感情迁移 提交于 2020-05-12 20:33:53
问题 We've run into an odd argument where I work, and I may be wrong on this, so this is why I am asking. Our software outputs a directory to an Apache server that replaces an underscore with a %5F in the name of the directory. For instance if the name of the directory was listed as a string in our software it would be: "andy_test", but then when the software outputs the directory to the Apache server, it would become "andy%5Ftest". Unfortunately, when you access the url on the server it ends up

URL Encoding with Underscores in a Directory Name?

房东的猫 提交于 2020-05-12 20:30:17
问题 We've run into an odd argument where I work, and I may be wrong on this, so this is why I am asking. Our software outputs a directory to an Apache server that replaces an underscore with a %5F in the name of the directory. For instance if the name of the directory was listed as a string in our software it would be: "andy_test", but then when the software outputs the directory to the Apache server, it would become "andy%5Ftest". Unfortunately, when you access the url on the server it ends up

Redirect domain to default language NGINX

寵の児 提交于 2020-04-17 22:56:15
问题 Been struggling for so long to 301 redirect site.com to site.com/en and site.com/my-page to site.com/en/my-page I manage to make the first redirect work, but not the second! also is it possible to use only one rule for both? So what is wrong with my second rule? rewrite "^/(?![a-z]{2}|[a-z]{2}-[a-z]{2})$" /en redirect; rewrite "^/(?![a-z]{2}|[a-z]{2}-[a-z]{2})/(.*)$" /en/$2 redirect; Thanks a lot in advance. 回答1: You don't have 2 capture groups in the the second regexp, only one. The first