All Questions
Tagged with redirect apache-2.2
468
questions
1
vote
0
answers
76
views
htaccess: I can't redirect to nested subfolders correctly on the WordPress app
I have a multilingual WordPress site that has two languages: en and tr, It's site A.
I wanna put my other WordPress site inside /tr/shop/ folder, It's site B.
Just need only these rules:
/en/anything/...
1
vote
0
answers
64
views
How to redirect using .htaccess in Apache
I am using the following .htaccess rules to redirect the url for following conditions:
RewriteEngine On
RewriteCond %{HTTP_HOST} ^example\.com$ [NC]
RewriteRule ^$ https://example.com/page.php [L,R=...
0
votes
1
answer
5k
views
How to setup correct .htaccess for laravel app on subdomain?
I moved my Laravel application from the development localhost to an internet production subdomain.
On localhost everything works. But when I move app to subdomain it seems .htaccess can not handle ...
0
votes
1
answer
116
views
example.com to https://www.example.com | Apache
So I want to redirect example.com to https://www.example.com. I already have ssl with certbot but I want to change my redirect config in /etc/apache2/sites-available/example.conf.
Certbot already ...
1
vote
1
answer
814
views
Two different rewrite conditions in the same .htaccess?
I need to create a rewrite condition for two specific files, according to the requested path in the URL. It's possible?
Condition 1: If the URL is example.com/admin go to admin.php?uri=params. That is:...
0
votes
2
answers
235
views
Redirect URL path to an action on index?
I'm running an apache web server on Ubuntu 20.04.
I have a domain.com which directs clients to the index.html. On the website there is a button that, when clicked, opens a calendal pop-up widget. I ...
1
vote
1
answer
429
views
How to remove ".com" suffix from hostname variable using .htaccess
I'm attempting to create a unique series of redirects on an Apache web server (Server version: Apache/2.2.15). Using .htaccess or additional Apache modules, I need to fully parse requested URLs in ...
0
votes
1
answer
146
views
Apache Redirect with OR Operator
How can I use the Apache OR operator to redirect several paths to one URL? E.g.:
RewriteEngine on
RedirectMatch 301 /foo || /foo/bar || /das.html https://example.com/ext/ddy/$1
Thanks for any help.
1
vote
0
answers
561
views
Redirect Permanent in Virtual Host apache configuration behaving not as expected
I have multiple domains pointing to the same IP.
RedirectPermanent works fine for all domains IF and only IF the pages are NOT existing, and I get the 404 default page of my website.
If I type in the ...
2
votes
1
answer
1k
views
HSTS and Wordpress redirection to www and non-www and https - avoid multiple redirections?
I am trying to implement the HSTS (HTTP Strict Transport Security) on my Wordpress site, but I am not getting any success. First I had managed to redirect my site from non-www to www , and including ...
1
vote
1
answer
995
views
How to properly setup SSL with Apache2 and multiple Docker containers?
I intend to create the following setup with a single server droplet:
What I want to achieve is to only setup SSL / HTTPS once for my
Apache2 web server using a wildcard certificate as depicted above.
...
0
votes
1
answer
144
views
How do I point other websites to subdomains on my site without redirecting users?
Apologies in advance as I'm trying to do something and I don't know what it's called or the best way to describe it, but here's my best attempt:
I have a domain, let's say aaa.com, and that domain has ...
0
votes
2
answers
541
views
Redirect Apache to a different service in subfolder
I have a CentOS 6.9 server that is running a DokuWiki under Apache/HTTPD 2.2. This wiki is installed in /var/www/html/dokuwiki. Therefore, when you type myserver.com/dokuwiki, it enters the wiki. If ...
0
votes
2
answers
3k
views
How to redirect domain with expired SSL certificate to new domain using apache
So in the past I used https://example.com. Then decided that I wanted to use https://myotherexample.com instead of example.com. So I setup the server, pointed DNS at that server and everything was ...
0
votes
1
answer
46
views
Apache Redirect directive stops working after 400 odd redirects
A business partner asked us to implement a list of 1000+ URL redirects from http://site1.com to https://site2.com. We set up an (old) Apache 2.2 which we cannot upgrade as follows:
<VirtualHost *:...
1
vote
1
answer
6k
views
Apache reverse proxy gets redirection
I'm trying to set up Apache as a reverse proxy. Here is the essential part of its configuration:
NameVirtualHost 10.16.10.245:9443
Listen 10.16.10.245:9443
<VirtualHost 10.16.10.245:9443>
...
-1
votes
1
answer
224
views
How to force/redirect http to https? [duplicate]
I've following VirtualHost configured:
<VirtualHost *:80>
ServerAdmin [email protected]
DocumentRoot /var/www/mysite.com/public_html/
ServerName www.mysite.com
...
0
votes
2
answers
951
views
Apache HTTPS / non-WWW redirect
I'm wanting to re-direct all my web traffic to
https://example.com
So-far I've got everything except https:www.example.com re-directing fine
This is what my Virtual Host Config file looks like
<...
2
votes
1
answer
2k
views
Getting "302 Found" even after redirecting to a specific file in the .htaccess
I have an Apache server hosted on an EC2 instance which points to a domain that I own. Now, what I essentially want to get done is that the web server should return a .json file when the user tries to ...
1
vote
1
answer
59
views
Changed Domain name, now have 2 how to redirect to preferred one using htaccess?
I have a WordPress Site and a PHPBB forum on /forums sub-directory.
I added a new domain to the website in Apache. After adding the domain everything would load on both domains.
Then I changed the ...
1
vote
1
answer
72
views
Traffic drop after HTTPS Magento
we have a Magento store, that we switched to https. Now 2 weeks after, we got a drop about 30%... What could be the cause?
I followed every step that was recommended.
I requested a reindex via search ...
1
vote
3
answers
5k
views
Redirect http url on port 5061 to https same port 5061 on apache
I have setup https on apache configuration of my website.conf as
<VirtualHost *:5061>
<Directory/var/www/website.com>
SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1
<...
1
vote
1
answer
1k
views
IIS and Apache rewrites and redirects working together
I'm having some trouble with IIS and apache working on the same server. Specifically, any redirects that apache does don't replace the website domain with the target domain. Here's an example:
Trying ...
1
vote
0
answers
4k
views
Apache redirect from http to https - SSL handshake failed: HTTP spoken on HTTPS port
I have Moodle (elearning system) web application installed on Debian 9 with Apache web server. It is a bitnami appliance, but the only difference is the folder structure. I configured redirection from ...
0
votes
1
answer
948
views
Redirect from http to https stopped working after update of Moodle
After Moodle elearning system update, the redirection from http to https is not working anymore.
Environment: Debian 9, Bitnami Moodle appliance, Apache web server
Port 80 and 443 are opened in ...
0
votes
1
answer
232
views
Wordpress - Non-www URL redirect to www using .htaccess file [duplicate]
I want to redirect non-www URL to www URL in WordPress.
I added code for the redirect but I see that I only redirect URL internally but not accessible from the externally. I redirect to apache ...
1
vote
1
answer
2k
views
Apache2 Redirect Trailing Slash Not Working
I have attempted to read various documentation, as well as other answers online, and I cannot find a solution to my problem.
Here is my issue:
I have a permanent www to non-www redirect setup to ...
2
votes
1
answer
401
views
redirect of https://www.example.com to https://example.com not working
I am using elasticbeanstalk to redirect HTTP requests to a secure port.
I want to redirect all my requests to https://example.com.
The following scenarios are working
http://www.example.com --> ...
0
votes
2
answers
66
views
redirect www.mydomain.com/page to subdir.mydomain.com?
I have a number of clients in the field accessing a web service using a format like this: www.mydomain.com/page/
I would like to redirect that URL to subdomain.mydomain.com/, where www.mydomain.com ...
0
votes
1
answer
201
views
RewriteMap Directive (permanent or temp redirect?)
This may sound like a silly question and I'm probably mixing apple with oranges, but please bear with me.
I'm reading the documentation here http://httpd.apache.org/docs/2.0/mod/mod_rewrite.html#...
9
votes
3
answers
3k
views
Apache DirectorySlash redirects HTTPS requests back to HTTP
User Request: https://www.example.com/test
HTTPS requests --> AWS ELB HTTPS Listener --> Apache HTTP
Apache getting http://www.example.com/test
Apache redirect it to http://www.example.com/...
-1
votes
1
answer
983
views
redirecting URL using meta tag
After typing domain name which is http://example.com on my web browser, I see Apache generic page as shown below:
As I figured out, it's shown because there is no index.html file present inside /var/...
0
votes
1
answer
2k
views
Bypass Apache Redirect for a single URL?
I have a system running Apache that directs all HTTP traffic to HTTPS via the Redirect directive:
<VirtualHost *:80>
Redirect permanent / https://www.example.com/
</VirtualHost>
I ...
2
votes
1
answer
5k
views
Apache (http) behind load balancer (http/https) - Redirect does not preserve https
I have two configurations - development and staging - with (supposedly) identical configurations: a set of HTTP-only Apache instances sitting behind a Citrix load balancer that allows both HTTP and ...
1
vote
1
answer
425
views
What wrong with RedirectMatch of Apache 2.2 mod_alias?
We use Apache HTTPD server version 2.2.
I try to use RedirectMatch of Apache 2.2 mod_alias without success ( http://httpd.apache.org/docs/2.2/mod/mod_alias.html#redirectmatch)
I need to create rule ...
0
votes
1
answer
960
views
Is it possible to redirect URLs in apache based on query parameters without RewriteEngine?
We use Apache HTTPD server version 2.2
I need to redirect URLs in apache based on query parameters.
Is it possible to redirect URLs without RewriteEngine?
2
votes
1
answer
3k
views
Apache redirects behind SSL terminating proxy
I have the following redirects in the <VirtualHost *:80>:
RewriteRule ^/old-url$ /new-url [R=301,L]
RewriteRule ^/foo$ /bar [R=301,L]
...
In front of apache I've got haproxy, ...
0
votes
1
answer
433
views
Redirect request from IIS to apache with virtual host without change the URL
i have a bunch of apache servers behind a IIS, each server have one site running and the subdomain redirect from IIS to Apache is working fine with URL rewriter + ARR, like below:
---...
1
vote
1
answer
77
views
Redirects for main domain are being triggered for sub domains
I have a domain configured on my server to redirect all requests to the HTTPS version of my site which is all working fine. A few days back, I added a sub-domain which is now being redirected to the ...
0
votes
1
answer
334
views
Does htaccess redirect to another domain still affect the original website's bandwidth?
I have a domain (let's call it one.com) that contains:
A website
A MySQL DB + a REST API service written in PHP to access the data
The API service is used by a mobile platform that calls it through ...
-1
votes
1
answer
2k
views
I get "Request exceeded the limit of 10 internal redirects" in Wordpress under Apache
I've added a post in Wordpress and when I try to see it in my browser I get error 500.
This is the configuration in apache.conf:
<VirtualHost *:80>
ServerName new.comelody.com
...
0
votes
1
answer
1k
views
Redirect subpages to parent-directory
I want to redirect all requests for subpages to the directory root. Unfortunately I only get redirect loops. Here is a sample of my .htaccess-file:
RewriteEngine On
RewriteBase /
RewriteCond %{...
1
vote
1
answer
5k
views
redirected you too many times
I have a ubuntu vps and i have setup a wordpress installation on it. Also i have a domains whose nameserver is set to cloudflare's nameserver, all the dns setting are on cloudflare and i also have TLS ...
0
votes
0
answers
568
views
Apache - location header is ignore when using https
I have site that use apaache as server.
The problem is that when I access page that redirects to external site (using Location header:
Location: https://www.google.pl
the url in location is replaced ...
0
votes
1
answer
77
views
Can i redirect only my mainpage to www
When i past this code, it redirects my whole website. But when i want to go to ticket.mysite.com it gives me the 404 because it redirects me to www.ticket.mysite.com but i don't want this with a ...
0
votes
1
answer
1k
views
Apache configuration - Why I get redirect loop?
I have Apache server and JBoos server with my application on my local computer.
This is my Apache configuration:
httpd.conf
ServerRoot "C:/opt/Apache"
Listen 80
LoadModule actions_module modules/...
0
votes
1
answer
116
views
How to apache to stop response to requests if alias or port does not match
I have more than one domain like example1.com example2.com. Some of them has SSL certificates and some of them does not. My apache listens both 80 and 443. If a domain has SSL certificates, I redirect ...
0
votes
1
answer
49
views
Redirect to new domain within sites-available apache
I'm moving a website from www.myolddomain.com to www.mynewdomain.com however I'm trying to do the following:
If someone goes to www.myolddomain.com they will be redirected to www.mynewdomain.com/...
0
votes
1
answer
35
views
.htaccess 301 redirect for https and www [duplicate]
I'm struggeling with the apache rewrite engine and need help to transform these address-variations:
http://www.site.de/index.php
www.site.de/index.php
http://site.de/index.php
site.de/index.php
to ...
0
votes
1
answer
46
views
Is there a way of writing cleaner rewrite rules if you've a large number of redirects to implement
I recentley completed a project whereby I moved a pretty large website to a nice clean smaller website. What this meant was I had to account for a large number of pages that had been indexed by search ...