Jump to content
earache

Need Redirect Help

Recommended Posts

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.

Share this post


Link to post
Share on other sites

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 by click

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×