Fli
02-04-2017, 11:51 AM
For newbie webmasters i found the way to redirect.
Go to your File manager or login your FTP account and get into the directory where are folders wp-content,wp-includes.wp-admin
here find and open file .htaccess file. If is not there, then try to check if your File manager or FTP program has setting to show "dot files" or hidden files.
create new line on the beginning of the .htaccess file and add your redirect rule:
Redirect 301 /old-post/ http://www.yourwebsite.com/new-post/
This redirect can be used to redirect even to different domains.
Other option is to insert into a .php file:
header('Location: http://example.com/newfile.php' . $_SERVER['REQUEST_URI']);
(untested)
Go to your File manager or login your FTP account and get into the directory where are folders wp-content,wp-includes.wp-admin
here find and open file .htaccess file. If is not there, then try to check if your File manager or FTP program has setting to show "dot files" or hidden files.
create new line on the beginning of the .htaccess file and add your redirect rule:
Redirect 301 /old-post/ http://www.yourwebsite.com/new-post/
This redirect can be used to redirect even to different domains.
Other option is to insert into a .php file:
header('Location: http://example.com/newfile.php' . $_SERVER['REQUEST_URI']);
(untested)