WP Automator
WordPress Setup

Setting Permalinks to Post Name

Configure WordPress permalinks for optimal SEO and WP Automator compatibility

Permalinks are the permanent URLs to your WordPress posts, pages, and other content. The "Post name" structure is essential for both SEO success and WP Automator compatibility.

Critical for WP Automator: The REST API requires pretty permalinks. Plain permalinks will cause connection failures.

The permalink structure affects multiple aspects of your WordPress site:

SEO Impact

Search engines favor descriptive URLs over numeric IDs

REST API Functionality

Required for WordPress API endpoints to work correctly

User Experience

Readable URLs are easier to share and remember

Content Organization

Logical URL structure helps with site architecture

Before You Begin

Prerequisites: Ensure you have Administrator access to your WordPress site and your server supports URL rewriting (mod_rewrite for Apache, try_files for Nginx).

Step-by-Step Configuration

Access WordPress Admin Dashboard

  1. Navigate to your WordPress admin URL: https://yourdomain.com/wp-admin
  2. Log in with your administrator credentials
  3. Verify you see the admin dashboard

From the WordPress admin dashboard:

  1. Locate Settings in the left sidebar menu
  2. Click on Settings to expand the submenu
  3. Select Permalinks from the options

You should now see the Permalink Settings page.

Select Post Name Structure

You'll see several permalink structure options:

StructureExample URLRecommendation
Plain?p=123❌ Never use - breaks REST API
Day and name/2024/12/25/sample-post/⚠️ Dates make content look old
Month and name/2024/12/sample-post/⚠️ Still includes dates
Numeric/archives/123❌ Not SEO-friendly
Post name/sample-post/Recommended
CustomUser defined🔧 Advanced users only

Select the "Post name" option by clicking the radio button next to it.

Save Your Changes

  1. Scroll to the bottom of the page
  2. Click the blue Save Changes button
  3. Wait for the confirmation message: "Permalink structure updated"

WordPress automatically updates your .htaccess file (Apache) or generates new rewrite rules (Nginx) when you save.

Verify the Changes

Test that your new permalink structure is working:

  1. Visit an existing post: Click on any published post and check the URL
  2. Test the REST API: Visit https://yourdomain.com/wp-json/wp/v2/posts
  3. Check redirects: Old URLs should automatically redirect to new ones

Common Issues and Solutions

This is the most common issue when updating permalinks:

Flush Rewrite Rules

  1. Go back to SettingsPermalinks
  2. Don't change anything
  3. Click Save Changes again
  4. This forces WordPress to regenerate rewrite rules

Check .htaccess File

For Apache servers, ensure your .htaccess file contains:

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress

If missing, add it manually or check file permissions.

Server Requirements

Apache: Ensure mod_rewrite is enabled:

sudo a2enmod rewrite
sudo service apache2 restart

Nginx: Add to your server block:

location / {
    try_files $uri $uri/ /index.php?$args;
}

REST API Not Working

If WP Automator can't connect after changing permalinks:

Test API Endpoint

Visit: https://yourdomain.com/wp-json/wp/v2/posts

You should see JSON data. If you get a 404:

Check REST API Status

  1. Go to ToolsSite Health in WordPress admin
  2. Check the "REST API" test result
  3. Follow any recommendations shown

Disable Conflicting Plugins

Some security plugins may block the REST API:

  1. Temporarily disable security plugins
  2. Test the API endpoint again
  3. Re-enable plugins one by one to find conflicts

If the API still doesn't work:

  1. Go back to SettingsPermalinks
  2. Click Save Changes (without changing anything)
  3. This forces WordPress to rebuild its rewrite rules

For advanced users who need custom structures:

Available Tags

%year%      - 4-digit year (2024)
%monthnum%  - 2-digit month (12)
%day%       - 2-digit day (25)
%hour%      - 2-digit hour (14)
%minute%    - 2-digit minute (30)
%second%    - 2-digit second (55)
%postname%  - Post slug (my-awesome-post)
%post_id%   - Numeric post ID (123)
%category%  - Primary category slug
%author%    - Author username

Common Custom Structures

Structure: /%category%/%postname%/

Example: /technology/latest-smartphone-review/

Use case: Sites with strong category organization

Structure: /%author%/%postname%/

Example: /johndoe/my-first-post/

Use case: Multi-author blogs or magazines

Structure: /%year%/%monthnum%/%postname%/

Example: /2024/12/breaking-news-story/

Use case: News sites where date context matters

Custom structures can impact performance. WordPress must process more rules to match URLs. Stick with "Post name" unless you have specific requirements.

Impact on WP Automator

Using the "Post name" permalink structure ensures:

FeatureBenefit
Article CreationClean, SEO-friendly URLs for all generated content
API ReliabilityConsistent REST API endpoints that won't break
Slug ManagementAutomatic slug generation from article titles
Category SupportProper category archive pages
Media HandlingCorrect attachment URLs for uploaded images

Best Practices

URL Structure Guidelines

Keep URLs Short

Aim for 3-5 words in your slugs

Use Hyphens

Separate words with hyphens, not underscores

Avoid Stop Words

Remove 'the', 'a', 'an' from URLs when possible

Be Descriptive

URLs should clearly indicate content topic

SEO Optimization Tips

  1. Remove dates from URLs to keep content evergreen
  2. Include keywords naturally in your post slugs
  3. Avoid special characters that require encoding
  4. Keep hierarchy shallow - avoid deep nesting
  5. Maintain consistency across your site

Troubleshooting Checklist

Before contacting support, verify:

  • WordPress version 5.6 or higher
  • Administrator access to WordPress
  • Server supports URL rewriting
  • .htaccess file is writable (Apache)
  • No security plugins blocking changes
  • REST API endpoint responds with JSON
  • Permalinks set to "Post name"
  • Changes saved successfully

Success! With permalinks configured correctly, your WordPress site is ready for WP Automator. Next, learn about adding multiple sites to manage all your WordPress properties from one dashboard.

Frequently Asked Questions

Q: Will changing permalinks break my existing links? A: WordPress automatically creates redirects from old URLs to new ones. However, it's best to set permalinks correctly when first setting up your site.

Q: Can I change permalinks on a live site? A: Yes, but do it during low-traffic periods. WordPress handles redirects, but search engines need time to update their indexes.

Q: Why does WP Automator require pretty permalinks? A: The WordPress REST API doesn't function properly with plain permalinks. Pretty permalinks ensure reliable API communication.

Q: What if my hosting doesn't support URL rewriting? A: Most modern hosts support this. If yours doesn't, consider upgrading your hosting plan or switching providers.


Next: Add Multiple WordPress Sites to your WP Automator dashboard

Last updated on

Setting Permalinks to Post Name | WP Automator