301 Redirects 404 page on exported site

Hi,

I exported a site from webflow, converted to php and connected to my database.

The site is now live, but I’m experiencing a problem when trying to define the 404 page and 301 redirects, with an htaccess file. Whatever I define in this file has no effect.

I’ve spoken to my hosting company (bluehost), and they were unable to find the problem, so I thought it might be related somehow to the exported code.

Any ideas?

Bluehost is horrible IMHO.

Post your current URL and htaccess file contents here.

The site - www.thecrowder.com

And here’s an example of the htaccess file content:

ErrorDocument 404 http://www.thecrowder.com/404.php

redirect 301 /categories/reviews/content/main http://www.thecrowder.com/content/compare-crowdsourcing-sites/

Thanks!

Try this

RewriteEngine on

Redirect 301 /categories/reviews/content/main http://www.thecrowder.com/content/compare-crowdsourcing-sites/

RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule . /404.php [L,R=301]

Also, feel free to contact me for further code help and/or customization of third-party plugins

2 Likes

Thanks, but this caused all also many ‘legit’ URLs to send me to the 404 page.
In the meantime, bluehost got back to me again - this is an issue on their side that they are working on solving.

The redirect in my original htaccess file is working now, but they haven’t yet solved the 404 issue.