Hosting & Domaining Forum

Hosting & Domaining development => Programming Discussion => PHP & ASP coding => Topic started by: rafiazafar on Aug 24, 2022, 02:15 AM

Title: How to remove blog in pretty URLs on WordPress multisite?
Post by: rafiazafar on Aug 24, 2022, 02:15 AM
Hello!
It appears that the code does not allow for the desired action, and a solution has not yet been identified.
It should be noted that in WP's latest version, the /blog URL is embedded in the pretty URLs and cannot be removed easily.
Title: Re: How to remove /blog in pretty URLs on WordPress multisite?
Post by: Inetscope on Aug 24, 2022, 02:35 AM
If you are looking for a solution to this query, here's what you can do:

For individual blog sites, navigate to Settings -> Permalinks -> Default.

For multisite main control, head over to each site -> Permalink Structure and enter /%category%/%post_id%.

With these steps, you should be good to go!

It's important to note that there may be variations in the steps based on your specific platform or version, so it's always a good idea to consult with the platform's dоcumentation or community forums if you need additional guidance.
Title: Re: How to remove /blog in pretty URLs on WordPress multisite?
Post by: denishverma on Oct 27, 2022, 11:46 AM
If you have removed dates from your WordPress URLs, it is important to ensure that proper redirects are set up.

Redirects allow users to be directed to updated URLs without encountering any 404 errors. Additionally, they help search engines understand that the old URLs have been moved to new URLs.

To get started, you will need to install and activate the Redirect plugin. From there, you will see a form containing the Source and Target URL fields. The "source URL" refers to your old URL structure, while the "Target URL" refers to the location of the new URL.

It's worth noting that there may be other methods or plugins available to achieve similar results, so it's always a good idea to do some research and experimentation to find the best fit for your specific needs.
Title: Re: How to remove blog in pretty URLs on WordPress multisite?
Post by: vmehranc on Feb 02, 2024, 01:01 AM
To remove "blog" from the pretty URLs on a WordPress multisite, you can follow these steps:

1. Log in to your WordPress dashboard as a super admin.
2. Navigate to "Network Admin" and then "Sites."
3. Select the site for which you want to remove "blog" from the pretty URLs.
4. Click on "Edit" for that site.
5. In the "Site Address (URL)" field, remove "blog" from the URL structure.
6. Save the changes.

After following these steps, WordPress will no longer include "blog" in the pretty URLs for the selected site on your multisite installation.

Keep in mind that this change may affect the permalinks of your site, so make sure to test the URLs after making the adjustment to ensure everything is working as expected. Also, it's always a good practice to back up your website before making any significant changes.