Adding a word to the custom permalink
-
Hi,
At the moment I’m using urls in the following structure:
/%category%/%postname%
However I want to change it to:
news/%postname%
but if I do this I get 404 errors.
I know changing urls after a site has been around is bad for seo but I plan to 301 the urls with .htaccess so there won’t be an issue.
RewriteRule ^category/([a-zA-Z0-9-_]+)/ http://domain.com/news/$1 [R=301,L]
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘Adding a word to the custom permalink’ is closed to new replies.