Wordpress permalink issues?

Loadzz

Regular Member
Joined
Jun 28, 2014
Messages
295
Reaction score
49
Hello,

I'm having an issue trying to change my sites permalink on my Wordpress website.

Wordpress version: 4.5.2

My current structure is: /%post_id%-%postname%/
I'd like to change it to /%category% /%post_id%-%postname%/ for SEO purposes.

When update my URL structure my previous URL's break - I have rewrite enabled for my .htaccess

What could be the issue breaking my sites URL's?

Any help is appreciated.
 
PM me your site URL and admin details and I'll fix it for you.
 
PM me your site URL and admin details and I'll fix it for you.

Don't feel comfortable sending over admin details.. Do you reckon it's something with the .htaccess?
 
"Break" meaning you get a 404 error? Make sure you have mod_rewrite enabled on your server.
 
"Break" meaning you get a 404 error? Make sure you have mod_rewrite enabled on your server.

Yeah, not found errors - I have Apache server, so host confirms mod_rewrite is already enabled.

I've also tried changing .htaccess to 777 permission, still no luck.
 
I've also tried changing .htaccess to 777 permission, still no luck.

Nothing should ever be 777 permission, least of all the htaccess file. That's a huge security hole right there.

Try backing up your htaccess file, deleting its contents and then try saving your permalink settings again.
 
Last edited:
I recently had the same issue with a new host, where .htaccess file generation was perfect, but somehow custom URLs show 404 errors. The following changes to the config file (/etc/apache2/apache2.conf in my case) solved it for me.

Replace "AllowOverride None" to "AllowOverride All"

My config file would look like this

Code:
<Directory />
  Options FollowSymLinks
  AllowOverride All
</Directory>

<Directory /var/www/>
        Options Indexes FollowSymLinks
        AllowOverride All
        Require all granted
</Directory>
 
Hello,

I'm having an issue trying to change my sites permalink on my Wordpress website.

Wordpress version: 4.5.2

My current structure is: /%post_id%-%postname%/
I'd like to change it to /%category% /%post_id%-%postname%/ for SEO purposes.

When update my URL structure my previous URL's break - I have rewrite enabled for my .htaccess

What could be the issue breaking my sites URL's?

Any help is appreciated.

Wait, let me clarify.

So your current page, for instance is,

http://site.com/432432/post-name

You now want to make it

http://site.com/category/432432-post-name

So when you update the permalinks

http://site.com/432432/post-name doesn't work?

Is that correct?
 
I recently had the same issue with a new host, where .htaccess file generation was perfect, but somehow custom URLs show 404 errors. The following changes to the config file (/etc/apache2/apache2.conf in my case) solved it for me.

Replace "AllowOverride None" to "AllowOverride All"

My config file would look like this

Code:
<Directory />
  Options FollowSymLinks
  AllowOverride All
</Directory>

<Directory /var/www/>
        Options Indexes FollowSymLinks
        AllowOverride All
        Require all granted
</Directory>

My config file reads:

Code:
<Directory "/">
Options ExecCGI FollowSymLinks IncludesNOEXEC Indexes SymLinksIfOwnerMatch
AllowOverride All
</Directory>

Wait, let me clarify.

So your current page, for instance is,

http://site.com/432432/post-name

You now want to make it

http://site.com/category/432432-post-name

So when you update the permalinks

http://site.com/432432/post-name doesn't work?

Is that correct?

My current URL setup is: http://site.com/432432-post-name

I'd like it: http://site.com/category/432432-post-name

Thanks :)
 
Nothing should ever be 777 permission, least of all the htaccess file. That's a huge security hole right there.

Try backing up your htaccess file, deleting its contents and then try saving your permalink settings again.

Will give this a go shortly, thanks :)
 
Back
Top