earache Posted April 12, 2008 Share 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 Link to comment Share on other sites More sharing options...
click Posted April 12, 2008 Share 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 Link to comment Share on other sites More sharing options...
earache Posted April 12, 2008 Author Share 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 Link to comment Share on other sites More sharing options...
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.