I'm going crazy. The only thing I want to do is add these rules to the site that I'm developing:
fastigheter-spanien/x property/X&lang=sv
fastigheter-usa/x property/X&lang=sv
properties-spain/X property/X&lang=en
properties-usa/X property/X&lang=en
Where X is the name of the post. These are all custom post types. The reason I ended up with this situation is that I use multiple languages but wanted the client not having to create more than one post for each article (they have a lot of options and images, having to re-publish them is practically out of the question). I've looked into creating rewrite_rules in functions.php and also modifiying the .htaccess file but haven't been able to get it to work. These rewrites are so simple they shouldn't need to use any functions. Can't I just adapt the .htaccess file?
Tried
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_URI} !^/fastigheter-spanien/([^\./]+)
RewriteCond %{REQUEST_URI} !^/fastigheter-usa/([^\./]+)
RewriteCond %{REQUEST_URI} !^/properties-spain/([^\./]+)
RewriteCond %{REQUEST_URI} !^/properties-usa/([^\./]+)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
RewriteRule ^fastigheter-spanien/([^\./]+)$ property/$1 [L]
RewriteRule ^fastigheter-usa/([^\./]+)$ property/$1 [L]
RewriteRule ^properties-spain/([^\./]+)$ property/$1&lang=sv [L]
RewriteRule ^properties-usa/([^\./]+)$ property/$1&lang=sv [L]
Which just gives me a 404. Any ideas?