Help! Can't get redirections working.

CrazeWiz

Regular Member
Joined
Sep 7, 2014
Messages
313
Reaction score
261
Hi all,

I'm only asking here because I've exhausted all other options. I have 10's of domains which I redirect successfully but can't get a few working so I'm asking here.

Basically I have purchased a few expired domains with hundreds of indexed pages and want to simply redirect the traffic to a CPA off in the same niche.

e.g. I want www.mysite.com/page1, www.mysite.com/home, www.mysite.com/pics to all redirect but I keep getting a 404 from my host (hostgator).

I have tried first uploading a simple index.html file and iframing the link and then doing a redirct including wildcard which usually works but no luck.

(I have waited for the DNS to resolve)

Any suggestions?
 
Not sure if you tried this already, but do a htaccess redirect.
Create an .htaccess file inside the root folder of the website and write inside
Code:
RewriteEngine on
RewriteRule ^(.*)$ http://example.com/ [R=301,L]

Replace the example.com url with your CPA page.
 
I think you should try this in .htaccess file in the expired domains webroot.

Code:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /

RewriteCond %{HTTP_HOST} !.*YOURDOMAIN\.com$ [NC]
RewriteRule ^(.*)$ http://YOURDOMAIN.com/$1 [R=301,L]

RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

Don't forgot to add your domain, and change index.php to index.html if your file is in html.

The key here is that the domain rewrite rule comes before the WordPress index rewrite rule.

PS : DNS wildcard will work only if you have a dedicated IP, aka if your site is accessible by IP, also it won't redirect file1 to file2, it works for domains itself, example.example.com will show your cpa landing page index.
 
Have you added the redirection code in .htaccess file or have you added it from the direct redirection option? If you have added it directly from the redirection option then page to page redirection will not work.
 
As it's page to page redirection, make sure to add the correct code in .htaccess file. Page to page redirection mostly do not work by direct redirection option available in your control panel.

Make sure you are using the correct extension while adding the redirection.
 
Back
Top