- #1
- 2,845
- 0
I'm running an Apache server, but I'm having trouble redirecting files. I've tried including lines like
[/URL]
in the httpd.conf file as well as in an .htaccess file, but loading the URL in the browser I only get the original file, not the file I'm redirecting to. Neither of
[/URL]
work (though all three should be the same, I think, unless Redirect gives a 302 instead).
I'm including alias_module already:
What am I doing wrong? Is there something else I need to configure?
Code:
Redirect permanent /oes.htm [PLAIN]https://example.com/file.html[/PLAIN]
in the httpd.conf file as well as in an .htaccess file, but loading the URL in the browser I only get the original file, not the file I'm redirecting to. Neither of
Code:
Redirect /oes.htm [PLAIN]https://example.com/file.html[/PLAIN]
Redirect 301 /oes.htm [PLAIN]https://example.com/file.html[/PLAIN]
work (though all three should be the same, I think, unless Redirect gives a 302 instead).
I'm including alias_module already:
Code:
LoadModule alias_module modules/mod_alias.so
What am I doing wrong? Is there something else I need to configure?
Last edited by a moderator: