Support » Fixing WordPress » Custom Rewriterule not working

  • I put a RewriteRule in htaccess and this does not work like that when you go to “file/123/1234.mp4” redirect to “”.

    This is my htaccess

    Options +FollowSymLinks +Indexes
    RewriteEngine On
    RewriteRule ^/?file/(.*)/(.*)\.[mp4|m4v|ogv|webm|acc|mp3|m4a|ogg]{3,4}$ http://$$2 [R]
    # 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]
    # END WordPress


  • The topic ‘Custom Rewriterule not working’ is closed to new replies.