Tag Info

New answers tagged

1

Try the following in .htaccess: RewriteEngine On RewriteCond %{QUERY_STRING} ^(.*)DriveType:Flash:(.*)$ RewriteRule ^us/Product-Family/Products/c/Products/layout$ /$0?%1DriveType:Flash SSD:%2 [R=301,L] This only matches the URL specified and externally redirects to the new URL. This could perhaps be made more efficient by restricting the pattern that will ...


2

<FilesMatch "^(.*)\-\-.+\.(js|css)$"> FilesMatch takes a filename and matches against the file system, not the URL. The underlying file is still called "myscript.js", so this pattern should be something like: \.(js|css)$ (Aside... your example request appears to be for common.js - which wouldn't have matched your pattern anyway - shouldn't this be ...


0

This is really something that the hosting ISP should re-point on their end: <VirtualHost *:80> ServerName www.mysubsite.com DocumentRoot /path/to/projects/mysubsite </VirtualHost> You might be able to fix it in .htaccess: RewriteCond %{HTTP_HOST} ^www\.mysubsite\.com [OR] RewriteCond %{HTTP_HOST} ^mysubsite\.com RewriteRule ^(.*) ...



Top 50 recent answers are included