Jump to content

Redirect URL


AlexJ

Recommended Posts

<IfModule mod_rewrite.c>
Options -MultiViews
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !.*\.(jpeg|jpg|gif|png|ico)$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
RewriteRule /tutorials/article/447-how-to-use-the-console https://fearless-assassins.com/topic/91367-how-to-use-the-console-enemy-territory/
</IfModule>

I am trying to migrate all my tutorials to the topics but somehow 301 doesn't redirect doesn't work through htaccess. Can someone please help? 

Link to comment
Share on other sites

RewriteRule . /index.php [L]

This means to match anything (the dot) that matches the previous rewrite conditions (which is basically anything that does not actually exist and does not appear to be an image) and route it to index.php. The [L] means it is the last rule and no other rules after will be checked.

If you just want to redirect that one specific URL, I would just use the Redirect .htaccess command.

https://linode.com/docs/web-servers/apache-tips-and-tricks/redirect-urls-with-the-apache-web-server/

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...