• Home
  • Get help
  • Ask a question
Last post 10 hours 30 min ago
Posts last week 209
Average response time last week 1 hour 34 min
All time posts 71241
All time tickets 10968
All time avg. posts per day 20

Helpdesk is open from Monday through Friday CET

Please create an (free) account to post any question in the support area.
Please check the development versions area. Look at the changelog, maybe your specific problem has been resolved already!
All tickets are private and they cannot be viewed by anyone. We have made public only a few tickets that we found helpful, after removing private information from them.

#11420 – the redirection method

Posted in ‘4SEO’
This is a public ticket. Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.
Wednesday, 20 November 2024 19:04 UTC
coachingpro-online-gmail-com

Hi,

I have a question about the right way to configure the component to make a permanent redirection.

I want my blog to go from Site A to Site B
So I need to configure the component on Site A to redirect its "blog" category and subcategories to site B.

The structure of the category will be identical.

Can you tell me how I can handle that?

Both site A and B have the component installed. I use 4SEF and 4SEO.

Thank you for your input...
Philippe

Thursday, 21 November 2024 09:19 UTC
wb_weeblr

Hi,

I don't quite understand what you want to do, as you are talking about two different websites, while of course a Joomla installation manages only one site.

Can you please provide full and real urls here, not examples, it should help understand.

 

 

 
Thursday, 21 November 2024 10:49 UTC
coachingpro-online-gmail-com

hey, of course, sorry.

website A : example.net
website B : example.com

I want to transfer the blog (a category with subcategories) from A to B with a permanent redirection

thanks for your insight,

Philippe

Thursday, 21 November 2024 10:57 UTC
coachingpro-online-gmail-com

can you confirm chatgpt method :

To handle a large number of URLs efficiently, you can use a more automated approach in 4SEF and 4SEO by setting up bulk redirection rules. Here’s how to proceed:
Step 1: Set Up a Bulk Redirection Rule in 4SEF

Open 4SEF on Site A and navigate to the Redirects or URL Manager section.
Use the Bulk Redirect feature:
Create a rule that targets all URLs under the "blog" category and redirects them to Site B.
Since the URL structure will remain the same, a simple rule should work. For example:
If your blog URLs are structured like this: https://example.net/blog/*
Set a rule to redirect https://example.net/blog/* to https://example.com/blog/*
This wildcard redirect will automatically apply the same rule across all URLs within the "blog" category, saving time.

Step 2: Use 4SEO for Additional Automation

In 4SEO on Site A, go to the Redirects section and confirm that the bulk redirect rule has been applied to all URLs under the "blog" category.
You can also create a Regex (Regular Expression) redirect rule in 4SEO if needed:
Use a pattern like ^/blog/(.*) to match all URLs in the "blog" category and redirect to https://example.com/blog/$1. The $1 will capture and pass through the subpaths and filenames automatically.
This approach works well if you need a highly flexible rule that applies to any variation within the "blog" category.

Step 3: Test and Confirm the Redirection

Once the rule is applied, test several URLs to ensure they redirect correctly to Site B.
Monitor the redirection log in 4SEO to confirm that users are being properly redirected to the new domain.

Step 4: Regular Monitoring

In 4SEO on Site A, keep an eye on any URLs that might not match the pattern to ensure complete coverage. The system should handle most redirects smoothly if the structure is consistent.

This setup will allow you to redirect all 1000+ URLs in one go without manually creating individual redirects for each URL.

 

Thursday, 21 November 2024 11:06 UTC
wb_weeblr

Hi again,

I want to transfer the blog (a category with subcategories)

Again: full and real URLs. Which exact URLs? what are the patterns to use?

Are the pages on the target site having the exact same URLs, except for the domain but including both French and English versions? for now the target site if offline so I can't check much.

OK, I have taken a better look at the blog in French, and you have a problem.

It should be easy to redirect the category pages, because the URL all start with /Table/Blog/.....So a redirect rule can be added to redirect /Table/Blog/{*} to https://example.com/Table/Blog/{*}.  

But for the individual blog posts, you chose to remove the categories in URLs:

https://example.net/tiktok-35-minutes-260-videos-pour-devenir-accro.html

https://example.net/votre-cerveau-est-il-respecte-par-le-reseau-social-et-ses-acteurs-votre-libre-arbitre-face-aux-posts.html

https://example.net/interview-pop-2024-sur-les-salons-dorientations.html  

And so now, it's impossible to have a redirect rule that matches all blog posts. You are going to have to redirect each single blog posts to the new address. While you can certainly add one redirect rule in 4SEO for each blog post, I would suggest you do that in your .htaccess file, it'll be much more efficient. 

[EDIT] Your message about chatgpt came after I wrote the above. And no, what they say cannot be used because as you removed the categories in the blog posts URLs, there's no pattern, you cannot have a "bulk" redirect.

Best regards

Yannick Gaultier

weeblr.com / @weeblr

 

 

 
Sunday, 22 December 2024 05:34 UTC
system
This ticket has been automatically closed. All tickets which have been inactive for a long time are automatically closed. If you believe that this ticket was closed in error, please contact us.
This ticket is closed, therefore read-only. You can no longer reply to it. If you need to provide more information, please open a new ticket and mention this ticket's number.