.htaccess – Simple 301 Redirect – Nothing Works
-
I am trying to redirect pages on the same domain.
https://www.abc.com/old-page.html to https://www.abc.com/new-page/I feel like I have tried everything and have looked through every website looking for help.
Currently I have this:
Redirect 301 “/data/uploads/pdfs/menu_drinks.pdf “/wp-content/uploads/2016/05/drinks-menu.pdf”
Redirect 301 “/online-ordering/” “/takeout-delivery/”# 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 WordPressI have also tried things like…
RewriteCond %{HTTP_HOST} ^abc.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.abc.com$
RewriteRule ^online-ordering\/ “http:\/\/www.abc.com\/takeout-delivery\/” [R=301,L]and…
Redirect 301 https://www.abc.com/online-ordering/ https://www.abc.com/takeout-delivery/as well as a bunch more…
I’ve also tried changing file permissions to 644 each time.
I would really appreciate your help as this has been exhausting.
- The topic ‘.htaccess – Simple 301 Redirect – Nothing Works’ is closed to new replies.