I'm using WordPress and I have a URL like this:
domain.com/my-pages/The+Title/go/
I want the 'go' removed, and my-pages
changed to books, like this:
domain.com/books/The+Title
without causing a 404 error.
It isn't possible via permalinks as I'm using a custom plugin.
I've tried this in .htaccess
but it doesn't work:
RewriteEngine on
RewriteCond %{HTTP_HOST} ^www.domain.com$ [NC]
RewriteRule ^(.*)$ http://domain.com/$1 [R=301,L]
RewriteRule ^my-pages/([^\.]+)/go/$ books/$1 [L]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ /index.php/$1 [L]
Any ideas?