301 重定向代码生成器

输入旧页面的网址:

输入新页面的网址:

选择重定向类型:

 

生成重定向代码以替换旧页面代码:

单击代码以复制文本以使用重定向代码替换旧的 URL 页面文件。

使用永久 301 重定向来保留搜索引擎排名。

代码生成器支持 html、php、asp、aspx 文件和 .htaccess 重定向的网页重定向。

Redirect type Redirect side Old page
file type
Old URL server type Is permanent
301 redirect?
PHP Server-side .php Apache / Linux yes
ASP Server-side .asp IIS / Windows yes
ASP.NET Server-side .aspx IIS / Windows yes
Apache .htaccess Server-side all Apache / Linux yes
IIS web.config Server-side all IIS / Windows yes
HTML meta tag Client-side .html all no
Javascript Client-side .html all no
jQuery Client-side .html all no
\n\n\n'; } else { txt = '\n\n\n