Struggling with WordPress and redirects!
I have a wordpress site which is only used (at the moment anyway) to provide url shortening, fangating for Facebook, provide tab pages for Facebook pages etc. i.e. I don’t use or want any of the ‘normal’ WordPress blog functionality.
To make life easier I want to redirect
http://mywordpressurl to https://facebook.com/myfanpage
but I don’t want to redirect anything else such as
http://mywordpressurl/shorturl
I need those to be handled normally by WordPress.
WordPress has it’s existing rewrite rules:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
Can I modify these to achieve what I want or can anyone suggest another way of achieving what I want? I’ve tried… but failed 🙁
Many thanks!
Add this ahead of the other rewrite rules: