earache Posted April 12, 2008 Posted April 12, 2008 I've been trying to figure out how to redirect any links to files within a directory (www.domain.com/gallery/*) and send them to a single page (www.domain.com/pictures/main.php). Using CPanel's Redirect page I'm having no luck at all. Thanks for any help. Quote
click Posted April 12, 2008 Posted April 12, 2008 (edited) I don't think you can do a wildcard redirect to a single page using cPanel's redirect, but adding the following to .htaccess should work >RedirectMatch ^/gallery/.* http://www.domain.com/pictures/main.php Edited April 12, 2008 by click Quote
earache Posted April 12, 2008 Author Posted April 12, 2008 I don't think you can do a wildcard redirect to a single page using cPanel's redirect, but adding the following to .htaccess should work >RedirectMatch ^/gallery/.* http://www.domain.com/pictures/main.php That worked perfect. Thanks. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.