1

I have simple lines in my htaccess

Redirect 301 /something/ /blog/something/

if i hit https://www.example.com/something/

it redirectes to http://www.example.com/blog/something/

i want https://www.example.com/something/ to https://www.example.com/blog/something/

it should use the https and not http

Saad Mirza
  • 17
  • 2

1 Answers1

0

Try this

RewriteEngine On RewriteCond %{SERVER_PORT} 80 RewriteCond %{REQUEST_URI} blog RewriteRule ^(.*)$ https://www.yourdomain.com/blog/$1 [R,L]

Tech Spot
  • 464
  • 3
  • 10