cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Need to forward all long urls from one of my sites to one page of another

I have a wp site hosted with GoDaddy.  We will call it 'myphotos.com'.  I need to be able to forward all long URLs like 'myphotos.com/cultural/147335' , so that they all go to one certain page of my other site 'myphotos.net/our-portfolio'. 

 

BTW the 1500 long URLs have been shortened with Bitly.     I just need any URL that has the URL of the first website at the beginning and any endings on it to go to the 'our-portfolio' page of the .net site.

 

Can this even be done?   The regular forwarding does not seem to work for me.

 

 

 

2 REPLIES 2
Helper I
Helper I

Re: Need to forward all long urls from one of my sites to one page of another

I'm not a coder, but do have many years of experience with Wordpress.

 

Part of problem-solving comes from knowing what terms to search for. The key that unlocks the door, if you will. I think the right term for you is "wild card redirect" or "regex".

 

Here are a couple discussion threads on the topic that I found. The second contains instructions to find a free plugin version that is supposed to take care of the issue.

https://wordpress.org/support/topic/wild-card-redirects/

 

https://wordpress.org/support/topic/wildcard-redirection/

 

 

For doing it manually, you'll have to learn about the .htaccess file and how to edit it. This can be scary for newbies, but if you leave your editor open in cpanel you can always go back into that tab after checking the results of your testing in another and revert your changes to fix things.

 

Here are a couple discussions on that topic, though if you're not used to the subject matter it can make you cross your eyes:

 

https://managewp.com/regular-expression-for-post-id-redirect-to-permalink

 

https://www.doitwithwp.com/regex-beginners-tips-redirecting-traffic/

 

 

 

Finally, you might look into a paid solution. Pretty Link Pro seems to take care of a lot of these issues proactively:

 

https://prettylinkpro.com/about/

Helper I
Helper I

Re: Need to forward all long urls from one of my sites to one page of another

Another option I just thought of is to use a custom post category type and make that the factor that directs the forwarding. As far as I understand you can use a plugin like this to do that:
https://wordpress.org/plugins/quick-pagepost-redirect-plugin/