പേജിൽ നിന്ന് URL-ലേക്ക് PHP റീഡയറക്ട്.PHP 301 റീഡയറക്ട്.
ഈ PHP റീഡയറക്ഷൻ HTTP പ്രതികരണ സ്റ്റാറ്റസ് കോഡ് നൽകണം: 301 ശാശ്വതമായി നീക്കി.
പഴയ URL-ൽ നിന്ന് പുതിയ URL-ലേക്ക് പേജ് റാങ്ക് കൈമാറാൻ തിരയൽ എഞ്ചിനുകൾ 301 പ്രതികരണ സ്റ്റാറ്റസ് കോഡ് ഉപയോഗിക്കുന്നു.
old-page.php കോഡിനെ new-page.php എന്നതിലേക്ക് റീഡയറക്ഷൻ കോഡ് ഉപയോഗിച്ച് മാറ്റിസ്ഥാപിക്കുക.
old-page.php:
<?php
// PHP permanent URL redirection
header("Location: http://www.domain.com/new-page.php", true,
301);
exit();
?>
പഴയ പേജിൽ .php ഫയൽ എക്സ്റ്റൻഷൻ ഉണ്ടായിരിക്കണം.
പുതിയ പേജ് ഏത് വിപുലീകരണത്തിലും ആകാം.
php-redirect-test.php
<?php
// PHP permanent URL redirection test
header("Location:
https://cmtoinchesconvert.com/ml/web/dev/php-redirect.html", true, 301);
exit();
?>
php-redirect-test.php-ൽ നിന്ന് ഈ പേജിലേക്ക് തിരിച്ചുവിടാൻ ഈ ലിങ്ക് അമർത്തുക:
PHP റീഡയറക്ട് ടെസ്റ്റ് - PHP ഫയൽ
php-redirect-test.htm
<?php
// PHP permanent URL redirection test
header("Location:
https://cmtoinchesconvert.com/ml/web/dev/php-redirect.html", true, 301);
exit();
?>
html ഫയലിൽ നിന്നുള്ള PHP റീഡയറക്ട് php-redirect-test.htm സാധാരണയായി .html ഫയൽ എക്സ്റ്റൻഷൻ കാരണം പ്രവർത്തിക്കില്ല, ഇത് .htaccess അല്ലെങ്കിൽ httpd.conf ഫയലിൽ പ്രവർത്തനക്ഷമമാക്കിയിട്ടില്ലെങ്കിൽ:
PHP റീഡയറക്ട് ടെസ്റ്റ് - HTML ഫയൽ
HTML ഫയലുകളിൽ PHP പ്രവർത്തനക്ഷമമാക്കാൻ ഈ കോഡ് .htaccess അല്ലെങ്കിൽ httpd.conf ഫയലിലേക്ക് ചേർക്കുക:
Addtype application/x-httpd-php .htm .html
Advertising