Jump to content

.htaccess Redirection


Hyphen

Recommended Posts

I recently purchased an SSL certificate for a website, which now requires that I redirect the base http pages to the new https address.

 

I need all pages in the format of "www.website.com" to be redirected to "https://www.website.com", though I need to exclude a specific directory, for the sake of this example, "test."

 

 

So...

www.website.com redirects to: https://www.website.com

www.website.com/test redirects to: http://www.website.com/test

https://www.website.com redirects to: http://www.website.com/test

 

I am not so experienced with .htaccess, or Apache as a whole. Could someone please help me?

Link to comment
https://forums.phpfreaks.com/topic/114959-htaccess-redirection/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.