Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?

.htaccess - foo.com/marketing

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /marketing/es/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /marketing/es/index.php [L]
</IfModule>

.htaccess - foo.com/marketing

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteRule ^(.*)/faqs$ faqs/index.php?lang=$1&type=faqs
RewriteRule ^(.*)/glossary$ faqs/index.php?lang=$1&type=glossary
RewriteRule ^(.*)/press$ faqs/press.php?lang=$1
RewriteRule ^(.*)/resources$ faqs/resources.php?lang=$1
RewriteRule ^(.*)/l$ faqs/index.php?lang=$1&type=landings
RewriteRule ^(.*)/l/(.*)_(.*)$ faqs/index.php?lang=$1&id_landing=$3&type=landings
RewriteRule ^(.*)/faqs/(.*)_(.*)$ faqs/index.php?lang=$1&idfaq=$3&type=faqs
RewriteRule ^(.*)/glossary/(.*)_(.*)$ faqs/index.php?lang=$1&idglossary=$3&type=glossary
RewriteRule ^(.*)foo-p2p-fx-service-explained$ peer-to-peer-foreign-exchange-explained [R=301,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
RewriteRule ^(.*)/en/(.*)$ http://blog.foo.com/$2 [R=301,L]
</IfModule>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.