- Limit Access Using htaccess
- Apache Limit access to a url
- Disable PHP on a folder
- How to protect .git folder using htaccess
- Password Protect Site using htaccess
- React Application showing 404 error on refresh
- Redirect Subdomain to Subdirectory
- How to Create Custom 404 Error Page in Apache
- CPanel SSL Renew on password protected site
- Magento 2 htaccess file (modified to remove mod_version)
Redirect
- How to Redirect HTTP to HTTPS using htaccess
- Redirect site from www to non-www
- Redirect OLD site to NEW using htaccess
Access Control
Redirect domain to SSL (HTTPS)
RewriteEngine On RewriteCond %{SERVER_PORT} 80 RewriteRule ^(.*)$ https://www.yourdomain.com/$1 [R,L]
Or
RewriteEngine On RewriteCond %{HTTPS} off RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R,L]
Redirect a Page to another
RedirectMatch 301 ^/old-page\.php$ /new-page.php
You can also use
Redirect 301 /old-page.php https://domain.com/new-page.php
Leave a Reply