this url is being rewritten
http://domain.com/embed/slideshow-image-list.js
to this
http://domain.com/code/embed/slideshow-image-list
current htaccess code
RewriteEngine on
RewriteCond %{HTTP_HOST} ^www.domain.com$ [NC]
RewriteRule ^(.*)$ http://domain.com/$1 [R=301,L]
RewriteRule ^embed/([^.]+).js$ http://domain.com/code/embed/$1 [L]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ /index.php/$1 [L]
its currently rewritten correctly, but if you visit the .js url it redirects to the full url.
im looking just to map it without redirection
See Question&Answers more detail:os