Answer the question
In order to leave comments, you need to log in
How to edit .htaccess?
Hello, I want to redirect from one page https://old.com/noob/ to another page https://new.com/good. Found what can be done in .htaccess like this
Redirect 301 /https://old.com/noob /https://new.com/good
<Files "wp-login.php">
AuthType Basic
AuthName "User: word Password: word"
AuthUserFile /etc/apache2/AUTH/word
Require valid-user
</Files>
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
Answer the question
In order to leave comments, you need to log in
Redirect 301 /https://old.com/noob /https://new.com/good
RewriteCond %{HTTP_HOST} ^old\.com$
RewriteRule ^noob$ https://new.com/good [R=301,L]
in any, except for the section
# BEGIN WordPress
....
....
# END WordPress
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question