1st person to post the correct code for my .htaccess file gets $10 via paypal.
I'm trying to get my affiliate links to look like (domain .com/go/offer) I've followed the insructions layed out at How To Hide All Your Affiliate Links With Only One File » DerekBeau.com but i can't get it to work on my wordpress blog. Apparently using custom permalinks messes things up but adding a [L] after every RewriteRule is supposed to fix it. But even with using [L] I get the same error. I must be messing something up when I add the Rewrite rule before the wordpress code.
My current .htaccess file looks like:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
The blog post says I need the below code to come before the wordpess code.
RewriteEngine On
RewriteRule go/(.*)/$ /go/index.php?title=$1 [L]
What should my total .htaccess file look like?
Thanks
I'm trying to get my affiliate links to look like (domain .com/go/offer) I've followed the insructions layed out at How To Hide All Your Affiliate Links With Only One File » DerekBeau.com but i can't get it to work on my wordpress blog. Apparently using custom permalinks messes things up but adding a [L] after every RewriteRule is supposed to fix it. But even with using [L] I get the same error. I must be messing something up when I add the Rewrite rule before the wordpress code.
My current .htaccess file looks like:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
The blog post says I need the below code to come before the wordpess code.
RewriteEngine On
RewriteRule go/(.*)/$ /go/index.php?title=$1 [L]
What should my total .htaccess file look like?
Thanks