Questions tagged [mod-rewrite]
The mod-rewrite tag has no summary.
28 questions
0
votes
0
answers
60
views
Help needed with .htaccess
I have a website which needs to be changed from Nginx to Apache webserver.
The index directory is nl.html but the HTML extension is removed from the address bar.
If I visit the website example.com it ...
2
votes
2
answers
3k
views
RewriteRule overrides ProxyPass
On a centos 7 machine, I'd like to run a python server alongside an apache server. I figured the easiest way would be to configure apache as a reverse proxy. This is my VirtualHost configuration:
<...
0
votes
0
answers
328
views
Why does Apache's mod-rewrite module process some GET requests and not process others?
I am trying to get mod_rewrite working. I'm experimenting with a very simple rule:
RewriteEngine On
RewriteRule ^/one /var/www/html/oldindex.html
Here is the complete config file: /etc/apache2/sites-...
0
votes
0
answers
873
views
In Apache config all my attempts to redirect all requests to index.html fail
I have an Angular SPA that should only request index.html. All other URL requests to this server are handled internally by the SPA. I want to redirect all 404 errs to index.html.
[UPDATE: This post ...
0
votes
1
answer
45
views
transfer .htaccess rewrite to apache vhost configuration
I am using a script that is called every time a special keyword combination is in query string - on all of my domains that are located on my server. I am using .htaccess files on every domain that ...
0
votes
1
answer
588
views
Apache RewriteCond not matching on `REQUEST_FILENAME` even though file exists?
Trace log:
apache_1 | [Wed Nov 20 17:14:43.950796 2019] [rewrite:trace2] [pid 9:tid 140252198749952] mod_rewrite.c(483): [client 172.18.0.1:54078] 172.18.0.1 - - [localhost/sid#7f8f031725e8][rid#...
0
votes
1
answer
726
views
Apache RewriteMap with wildcard
We want to migrate multiple domains on new servers. In the first step (though from a SEO point of this is not recommendable) everything has to be redirected to the new domain's root.
Later the team ...
-1
votes
1
answer
84
views
display a different name from the 'real' URL name
I need to change an incoming http request
for www.pathfinder.com/T/client/care/login.html
to look like www.Theshop/care/login.html
in the "URL" line on the browser.
How can this be done with using "...
2
votes
1
answer
5k
views
Redirect Main domain and subdomain from http to https
i want to redirect these sub domains and main domain from http to https and sub blogs too.
Home directories
WWW (Wordpress): /home1/placehq5/public_html/.htaccess
My Somadome (PHP): /home1/...
2
votes
1
answer
1k
views
.htaccess rewrite not working?
I have the following virtual host in /etc/apache2/vhosts.d/ip-based_vhosts.conf:
<VirtualHost test.local:80>
ServerAdmin [email protected]
ServerName test.local
DocumentRoot /home/web/test....
1
vote
1
answer
2k
views
Apache query string rewrite not working
I need to rewrite a domain name in a query parameter in order to augment a proxy. The proxy basically is just a domain rewrite, but some of the responses from the upstream server include a query ...
1
vote
0
answers
2k
views
.htaccess for redirecting an URL with hashtag
I have urls which I need to redirect to another URL. The issue is that the source URLs contain # character.
source url: http://www.wawa.com/fr/#/creations/eclairs
redirect to : http://www.wawa.fr/fr/...
1
vote
0
answers
615
views
mod_rewrite / htaccess not working
I can't get mod_rewrite to work on a client's site, it's just ignoring the .htaccess file completely.
I'm not 100% sure what flavour of Linux is being used, it seems to be CentOs.
I've checked the ...
0
votes
1
answer
32
views
How can I get Wordpress functioning from its new address?
I have a Wordpress installation which I wish to redirect from http://dev.example.com to https://example.com
I can get an unstyled page like the below; the browser balks at loading HTTP content for an ...
0
votes
1
answer
147
views
mod_rewrite all and if not found
I need to make some rewrite rules, but I doesn't use Apache HTTP for years and little bit confused with rules...
Task:
rewrite URLs from http://example.com/test/file.js to http://example.com/test/1/...