Jump to content

Recommended Posts

Posted

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.

Posted (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 by click
Posted
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.

Join the conversation

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

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
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.

×
×
  • Create New...