Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialKuriakose Chacko
74 PointsHow can edit my .htacess so that I can decrease my 404 errors?
I have been getting the following 404 URL errors
- http://flatschicago/slide-9 but I want that to be redirected to http://www.flatslife.com
- http://flatschicago/magazine/tara-clack - to be redirected to http://www.northmag.flatslife.com
On my File Manager > public_html folders there is an .htaccess file However, in public_html folder > Magazine (folder) there is also a .htaccess file in that folder as well. This .htaccess file is what I am looking at - because any other doesn't seem instrument. Can anyone please help?
This is my htacess from my pubic_folders:
RewriteOptions inherit
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
RewriteEngine On
Redirect 301 /xmlrpc.php http://127.0.0.1
# BEGIN Sandbox
# END Sandbox
RewriteCond %{HTTP_HOST} ^flatschicago\.com$ [OR]
RewriteCond %{HTTP_HOST} ^www\.flatschicago\.com$
RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$
RewriteCond %{REQUEST_URI} !^/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
RewriteRule ^/?$ "http\:\/\/www\.flatslife\.com\/" [R=301,L]
RewriteCond %{HTTP_HOST} ^flatschicago\.com$ [OR]
RewriteCond %{HTTP_HOST} ^www\.flatschicago\.com$
RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$
RewriteCond %{REQUEST_URI} !^/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
RewriteRule ^magazine\/?$ "http\:\/\/www\.northmag\.flatslife\.com\/" [R=301,L]