htaccess redirect rule

HostOncilla

New Member
I'm having a problem that I just can't work out. So basically, I am trying to redirect from a long URL to a friendly URL. I got the internal redirect to work, I just can't get the external one to work. Does anyone know what I'm doing wrong? I've tried many versions but none of them work.

Code:
RewriteEngine On

# 1. Redirect index.php with specific query structure to clean .html (can't get this one to work)
RewriteCond %{THE_REQUEST} \s/+index\.php\?fuse=admin&view=snapin&controller=snapins&plugin=page&v=([^&\s]+) [NC]
RewriteRule ^index\.php$ /%1.html? [R=301,L]

# 2. Rewrite clean .html to internal index.php (this one works fine)
RewriteRule ^([^/]+)\.html$ /index.php?fuse=admin&view=snapin&controller=snapins&plugin=page&v=$1 [L]
 
Back
Top