An optimal way of nginx rewrite rule building for pretty URL [closed]

Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it’s on-topic for Server Fault. Closed 4 years ago. Improve this question The webpage is accessed in the following way: `example.com/` or `example.com/?site=website` In this example, I’m accessing the websites located on example.com domain. Could … Read more

nginx rewrite domain/service to domain [closed]

Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it’s on-topic for Server Fault. Closed 3 years ago. Improve this question I have a domain http://test.test . I need nginx rewrite rule that states: if you write http://test.test/whatever/whatever to go to http://test.test. Answer You … Read more

apache conf entry does not work but does in .htaccess [closed]

Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it’s on-topic for Server Fault. Closed 6 years ago. Improve this question i am running: Server version: Apache/2.2.15 (Unix) i have a custom security conf file on a shared server. i placed the following entry … Read more

RwriteRule from www.domain.net/sub to sub.domain.net [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for … Read more

How to convert this Apache rewrite rule to Nginx

I’ve been struggling to convert my past Apache rewrite rule to Nginx (also not sure if I’m placing it in the right place so would appreciate if you can tell me where to place it). Basically, this was the Apache rewrite rule in my .htaccess file on WordPress: <IfModule mod_rewrite.c> RewriteEngine on RewriteRule ^/?hosts/(.*)$ /user/$1 … Read more

remove everything but domain name from url

I am looking if the is an easy way to keep the webpage always with the URL like: http://example.com at the time there are request like http://example.com?target=dirigido http://example.com/a-quien-va-dirigido/ http://www.example.com/a-quien-va-dirigido/ … behind. Anybody could help? EDIT The following rule RewriteRule ^(.*)$ http://example.com/$1 [L,R=permanent] seems to lose the ?target=dirigido request. EDIT2 The case is the site is … Read more

Apache LoadBalancer URL rewrite

I have one URL http://ip:port/Parameter (apache LoadBalancer), If I hit this URL, apache LB should rewrite URL as http://ip:port/application/Adaptor/Parameter. Parameter this value will change always. How can achieve this by using Apache Load Balancer? I have configured property files. mod-jk.conf workers.properties uriworkermap.properties Answer After adding following conditions in httpd.conf, issue closed. Thanks for your support. … Read more