Streaming live at 10am (PST)

301 Redirects 404 page on exported site


#1

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?


#2

Bluehost is horrible IMHO.

Post your current URL and htaccess file contents here.


#3

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!


#4

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


#6

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.


#7