I'm trying to redirect index.php to index.php?level=slideshow&mode=album&id=1 using the .htaccess file, but it isn't working.
The trouble could be in my syntax, but I'm wondering if it won't work because the page is really redirecting to itself, just with attributes added.
One of the many redirects I've attempted:
Code: Select all
Options +FollowSymlinks
RewriteEngine on
rewritecond %{http_host} ^www.domain.com/gallery/index.php [nc]
rewriterule ^(.*)$ http://www.domain.com/gallery/index.php?level=slideshow&mode=album&id=1$1 [r=301,nc]Code: Select all
RewriteEngine on
RewriteCond %{ENV:GEOIP_COUNTRY_CODE} [NC]
RewriteRule ^http://www\.domain\.com/gallery/index\.php$ [L]
RewriteCond %{HTTP_USER_AGENT} ^Mozilla/[345].*Gecko*
RewriteRule ^http://nickwhite\.server319\.com/gallery/index\.php$ http://www.domain.com/gallery/index.php?level=slideshow&mode=album&id=1 [L]
RewriteCond %{HTTP_USER_AGENT} ^Mozilla/[345].*MSIE*
RewriteRule ^http://nickwhite\.server319\.com/gallery/index\.php$ http://www.domain.com/gallery/index.php?level=slideshow&mode=album&id=1 [L]