1

I have installed my SSL and set up redirects but now some links are breaking

Example I'm getting https://fraffel.techadmin/ instead of https://fraffel.tech/admin. It's like the system is moving the forwardslash to the end, in the website files it is defined as https://fraffel.tech/admin

Any help extremely appreciated.

FAXES
  • 57
  • 1
  • 6
  • Hello, FRAFFEL MEDIA, probably you should put a slash `/` to the end of the target URL within the redirection directive: `Redirect permanent "/" "https://example.com/"`. I've checked for [examples](https://httpd.apache.org/docs/current/rewrite/avoid.html#redirect) within the Apache's documentation and also corrected [my previous answer](https://askubuntu.com/a/1031460/566421). – pa4080 May 03 '18 at 13:10
  • You are welcome! Please do not worry to ask clarifying questions under an accepted answer or even to un-accept an answer if you later find it is not working properly... – pa4080 May 03 '18 at 13:53

1 Answers1

1

According to the examples, provided within the Apache's documentation, you should add a slash to the end of the target URL in the Redirect directive.

<VirtualHost *:80>

    ServerName example.com

    # Redirect Requests to HTTPS
    Redirect permanent "/" "https://example.com/"

    # Other configuration directives for this VH ...

</VirtualHost>

Don't forget to restart Apache and flush the browser's cache to take effect.


I know that, because I led you to this situation with my my previous answer, that is already corrected :)

pa4080
  • 29,351
  • 10
  • 85
  • 161