Invision Community 4: SEO, prepare for v5 and dormant account notifications Matt November 11, 2024Nov 11
Posted March 21, 20187 yr <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?
March 21, 20187 yr 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/
Archived
This topic is now archived and is closed to further replies.