Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 59525

Adding a variable prefix to wordpress urls

$
0
0

Replies: 0

Hi,

I have a blog running which is installed as a sub directory, ie http://www.mydomain.com/blog – however the main website is now expanding to include localised version accessed via a sub directory, eg: http://www.mydomain.com/us, http://www.mydomain.com/eu etc…

As such when a user is viewing one of these subdirectory website I need them to be able to view the blog posts via this sub-directory. Please note, the posts are NOT translated I just need the links to work, without changing the original links.

For example I need:

http://www.mydomain.com/blog/my-post

to work but also for

http://www.mydomain.com/us/blog/my-post

to point to the same post and maybe so that I can pick up the ‘us’ part in my theme/templates.

I have tried various rewrite rules in both the .htaccess in the root as well as the .htacccess in the sub-directory and whilst the links DO go to the blog, the return the WordPress 404 so the full request is not recognised


Viewing all articles
Browse latest Browse all 59525

Trending Articles