Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8945449
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T12:14:52+00:00 2026-06-15T12:14:52+00:00

I do not know a lot htaccess and redirect url (301) with php as;

  • 0

I do not know a lot htaccess and redirect url (301) with php as;

header( "HTTP/1.1 301 Moved Permanently" );
header( "Location: http://www.exampledomain.com" );

Is there any difference or advantage between the two for google?Can I must use htaccess for redirect url?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T12:14:53+00:00Added an answer on June 15, 2026 at 12:14 pm

    You have to use both these headers to redirect something permanently. Both headers are needed. I echo this same header for my old blog url. And I get all the referrals, visitors, inlinks from google to the new domain.

    It does not matter how you echo the headers. It matters those headers exist.

    I know PHP well so I have used a PHP file that echos only these headers

    HTTP/1.1 301 Moved Permanently
    Location: http://shiplu.mokadd.im/
    

    If you use 302 redirect Google will remember your current url and associate all your links to that old url.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I know what I asking might not make a lot of sense for C#
I know there is a lot of controversy (maybe not controversy, but arguments at
I know that recursion is sometimes a lot cleaner than looping, and I'm not
I do not know a whole lot about math, so I don't know how
I am quite new to Xcode and still do not know a lot of
I know there are a lot of such questions, but I could not find
I do not know a lot of JS. Although I already did my own
I do not know how to ask this question. So I will just give
I do not know why my google markers are not showing. I am using
EPD python does not know to look for the Ubuntu repository python so installing

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.