Redirect with . htaccess

Asked

Viewed 56 times

1

I am using the following mod-rewrite rule

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([^/]+)/([^/]+)/?$ index.php?lang=$1&page=$2 [L,QSA,NC]

But now I need to redirect an old page to the new one. So I did the following:

Redirect 301 /port/reestruturacao-financeira http://website.com/port/reestruturacao-corporativa/

Where the second is the new page. But the browser returned this:

http://website.com/port/restructuracao-corporate//? lang=port&page=financial restructuring

  • Try this: Redirect 301 /pagina_antiga.php http://www.example.com/nova_pagina.php

  • Put the . htaccess all please

  • @tkmattos reply here: http://stackoverflow.com/a/37049524/3691686

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.