createHtaccessRedirect

Generates .htaccess code to 301 redirect an old link to a new one.

Function

=createHtaccessRedirect(oldUrl, newUrl)

Parameters

Name Type Description
oldUrl string The old URL you want to 301 redirect
newUrl string The new URL

 

A1: http://www.domain.com/old-page
B1: http://www.domain.com/new-page
C1: =createHtaccessRedirect(A1, B1)