0

Php code for redirect to the provided link:- Redirect /index.cfm http://www.example.com/index.php

write a php code to redirect to a link the Redirectdirective is sufficient. The syntax of the Redirect directive is as follows: Redirect [Original] [Target] where [Original]is the URL that was originally requested, and [Target]is the fully qualified URL to which you wish to redirect it. When the user requests the original URL, Apache will send a redirection message back to the browser, which will then request the new URL. The address appearing in the address bar of the user’s browser will change to the new URL. This approach requires a second round-trip to the web server in order toretrieve the content. The advantage of this approach, in addition to simplicity, is that the new corrected URL is announced to the user (who may or may not notice), but also that an automated process such as a search engine indexer will update its records to reflect the new URL and stop requesting the old one.

18th Jun 2018, 6:45 PM
Cosmic Skull
Cosmic Skull - avatar
0 ответов