Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
AlexJ Posted March 21, 2018 Posted March 21, 2018 <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?
bfarber Posted March 21, 2018 Posted March 21, 2018 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/
Recommended Posts
Archived
This topic is now archived and is closed to further replies.