Ask Question Sign In Sign Up
Home
Sign In
Sign Up
  • Home
  • >
  • Technology
  • >
  • How to add 301 redirects in PHP?
Q&A Business Design Economics Education Marketing Sports Technology
Category
Q&A
Business
Design
Economics
Education
Marketing
Sports
Technology

How to add 301 redirects in PHP?

Member

heather_fritsch

by heather_fritsch , in category: Technology , 4 years ago

How to add 301 redirects in PHP?

0 | 0
0
Facebook Twitter LinkedIn Telegram Whatsapp

1 answer


Member

aaliyah

by aaliyah , 4 years ago

You can add 301 redirect in PHP by adding below code snippet in your file.


1
2
3
header("HTTP/1.1 301 Moved Permanently"); 
header("Location: /option-a"); 
exit(); 
0 | 0
0

Related Threads:

How to do 301 redirects in CodeIgniter?

What is difference Between PHP 5 and 7?

How to Create a Composer Package in 2025?

How to Add SVG in HTML?

How to add maxLength on ion-input?

What Are the Best Practices for Sql Server Security?

About us

  • Contact us
© 2025 Copyright: emediaworld.com

This Site is Created By mywebforum.com

Get Your Own Questions & Answers platform