Jump to content

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.

Link to comment
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
Link to comment
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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...