Skip to main content

All Questions

Tagged with
1 vote
1 answer
53 views

.htaccess to accept parameters in URL

I have a WordPress page with the following structure website.com.au/pre-registration/parameter-value/, where the parameter value was originally a GET parameter, but I was requested to make it part of ...
Leonardo Pessatti's user avatar
1 vote
1 answer
82 views

Apache VHost Redirect /dir/ to subdomain

I had applications running on the following variable links: www.example.com/topics/vardir/show www.example.com/education/topics/vardir/vardir/show www.example.com/literacy/topics/vardir/show www....
Josh Hawkes's user avatar
1 vote
3 answers
236 views

apache2 rewrite is working, but doesn´t keep URL

I was looking around google for some days now and can´t get it to work. With apache rewrite: domain.com > test.com/test (but keep the URL domain.com in browser) The whole SSL Config: <...
roku's user avatar
  • 11
0 votes
0 answers
404 views

Apache URL rewrite to hide port numbers of web servers

I have an Ubuntu server running Gitea and Jenkins on ports 3000 and 4000 respectively. I want to be able to access them through a user friendly url like http://myhost/gitea and http://myhost/jenkins. ...
shane.singwa's user avatar
0 votes
0 answers
170 views

apache2 reverse proxy, how to serve multiple domains with backend recognizing only 1 valid uri

I have an Apache reverse proxy set up and my backend service is configured on a specific static ServiceUri="site.com". I would like requests coming for multiple domains a.site.com/data, b....
Mnemosyne's user avatar
  • 131
3 votes
2 answers
1k views

SEO friendly URL not working

I have a folder structure like the below www.exampe.com/distributor/index.php and I want to access the file via an SEO friendly www.example.com/distributer/abcinc and then in the index.php want to ...
Jayreis's user avatar
  • 145
1 vote
0 answers
60 views

rewirterule in apache conversion to nginx equivalent rewrite rule

Apache server rewrite rule has been written below: RewriteEngine on RewriteRule "^/cesop(.*)$" "http://LSVCHN-EPAP01/cesop$1" [P] In Internet browser, type below: https://...
Radhakrishnan Meiyappan's user avatar
1 vote
1 answer
87 views

How to load requested file from sub-directory without rewriting base

Utilizing .htaccess rules, I'm attempting to load a file from within a sub-directory while keeping the frontend URL unchanged if both the domain and file path match criteria. Example of URL: example....
sparecycle's user avatar
4 votes
1 answer
2k views

htaccess rewrite /dir/*.jpg to /dir/webp/*.webp only when webp file exists

I'm trying to rewrite all website files (*.jpg|*.gif|*.png) to *.webp in a subdir, but only when the *.webp file exists. Previous and new files have the same name, only changing the extension and *....
Diego Flores's user avatar
1 vote
1 answer
95 views

2 websites hosted on same domain, 1 needs to look like a subfolder ( /blog)

I bought a VPS for my new project running apache. On it I have 2 websites on the same domain. The first one is Ruby on Rails /var/www/html The second one is Wordpress /var/www/blog I want Wordpress to ...
Adelle's user avatar
  • 13
0 votes
1 answer
144 views

How to redirect domain to path in apache server using debian 10 OS

I am currently using "xyzservice.abcindia.local" as a website using a reverse proxy, Now what I want to achieve is, when I hit the "xyzservice.abcindia.local" this should redirect ...
Akshay Bhandakkar's user avatar
0 votes
1 answer
899 views

Apache redirect URL to another virtualhost

I have two sites which runs independently on my VPS, let's call them site1 and site2. They are respectively located at /var/www/html/site1 and /var/www/html/site2 I don't have a domain name yet but I ...
Arkaik's user avatar
  • 113
1 vote
1 answer
345 views

Space in value part of RewriteMap

This question is related to Apache RewriteMap with URLs containing space doesn't work, but in this case the issue is a space in the value part of the map, not the key part. Say I have this entry: /...
dorian's user avatar
  • 437
1 vote
2 answers
4k views

Is it possible to redirect a subdirectory to another server while keeping the domain name

We have a working website under the domain x.domain.tld. We want to add a wordpress to it in such way we have x.domain.tld/blog but install it on another server so we don't touch anything on this old (...
Kévin Bruneau's user avatar
0 votes
0 answers
14 views

Redirect Url on Apache Server

i have this url: https://pouv.com/presentation/vues/restreint/gestionnaire/**** i want to redirect to: https://pouv.com/bo/ I do this on my .conf: ## Rewrite rules RewriteEngine On RewriteRule ...
Mercer's user avatar
  • 113

15 30 50 per page