Data at Your Fingertips: Explore Our New Reporting and Statistical Capabilities By Ryan Ashbrook 20 hours ago
AlexJ Posted March 21, 2018 Share 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? Link to comment Share on other sites More sharing options...
bfarber Posted March 21, 2018 Share 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/ Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.