I created an apache 302 redirect (not permanent) and ive deleted it in my site.conf. Yet all devices continue the redirect. Ive cleared cache on all devices yet no luck. It still redirects.
#previous configuration
ServerAdmin [email protected]
ServerName site.com
ServerAlias www.site.com
Redirect / redirect.com
#new configuration
ServerAdmin [email protected]
ServerName site.com
ServerAlias www.site.com
DocumentRoot /document/root/here
Like i said aive cleared cache multiple times on all devices yet, the redirect still holds, how can i fix this? EDIT--------------- this is the complete virtualhost file after the change
<VirtualHost *:80>
# The ServerName directive sets the request scheme, hostname and port that
# the server uses to identify itself. This is used when creating
# redirection URLs. In the context of virtual hosts, the ServerName
# specifies what hostname must appear in the request's Host: header to
# match this virtual host. For the default virtual host (this file) this
# value is not decisive as it is used as a last resort host regardless.
# However, you must set it for any further virtual host explicitly.
#ServerName www.exam
ServerAdmin [email protected]
ServerName ajoopay.com.ng
ServerAlias www.ajoopay.com.ng
DocumentRoot /var/www/lander
# DocumentRoot /var/www/Ajoopay/public
# Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
# error, crit, alert, emerg.
# It is also possible to configure the loglevel for particular
# modules, e.g.
#LogLevel info ssl:warn
<Directory /var/www/lander>
Require all granted
AllowOverride All
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
CodePudding user response:
It seems that you have only removed it from the virtualhost for port 80. You should also remove it from a virtualhost similar to:
<VirtualHost *:443>
...
It will be usually in default-ssl.conf, but can change depending on your configuration.