Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Redirect the old http urls traffic to https? #2578

Closed
IMExperts opened this issue Nov 17, 2019 · 3 comments
Labels

Comments

@IMExperts
Copy link

@IMExperts IMExperts commented Nov 17, 2019

Hi, I’ve created the cert in my cPanel, and in config changed the site_value to https and it has converted all the old http shortened links to HTTPS in yourls admin panel. But how can I redirect the old http links traffic to HTTPS? I think this option should be included in the default release.

Thanks

@IMExperts IMExperts added the bug label Nov 17, 2019
@dgw dgw added question and removed bug labels Nov 17, 2019
@dgw

This comment has been minimized.

Copy link
Member

@dgw dgw commented Nov 17, 2019

Make your webserver do it. (Plenty of similar tutorials available for whatever HTTP server you're using if you do a quick web search.)

@dgw dgw closed this Nov 17, 2019
@IMExperts

This comment has been minimized.

Copy link
Author

@IMExperts IMExperts commented Nov 17, 2019

RESOLVED:

# BEGIN YOURLS
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{HTTPS}  !=on              **//Added this line**
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^.*$ /yourls-loader.php [L]
</IfModule>
# END YOURLS


<Files 403.shtml>
order allow,deny
allow from all
</Files>
@YOURLS YOURLS deleted a comment from IMExperts Nov 18, 2019
@IMExperts

This comment has been minimized.

Copy link
Author

@IMExperts IMExperts commented Nov 18, 2019

No man, I'm getting 404 No Found error on https links. Could you send the solid solution for this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.