scottf 2 Posted March 5, 2013 Report Share Posted March 5, 2013 (edited) I got a gig helping to get this site running on wordpress, and I cannot figure out why most pages redirect to the homepage. The htaccess doesn't have anything but wordpress stuff in it. This is the site:http://capecodwithinreach.com/ Notice, if you type anything after that, like the pages i am trying to create, it redirects home.http://capecodwithin...com/newpage.phphttp://capecodwithin...still-redirects However, things like:http://capecodwithin...om/wp-login.phpstill go to the right place. Why is this, and how can I stop it? I can't create any pages! Thanks! Edited March 5, 2013 by scottf Quote Link to post Share on other sites
Labtec 4 Posted March 5, 2013 Report Share Posted March 5, 2013 Are the pages which are not working even created? Regards, Lab. Quote Link to post Share on other sites
Ingolme 1,019 Posted March 5, 2013 Report Share Posted March 5, 2013 So what is in your htaccess file? Quote Link to post Share on other sites
scottf 2 Posted March 5, 2013 Author Report Share Posted March 5, 2013 This is my htaccess # BEGIN WordPress<IfModule mod_rewrite.c>RewriteEngine OnRewriteBase /RewriteRule ^index\.php$ - [L]RewriteCond %{REQUEST_FILENAME} !-fRewriteCond %{REQUEST_FILENAME} !-dRewriteRule . /index.php [L]</IfModule># END WordPress Quote Link to post Share on other sites
Ingolme 1,019 Posted March 6, 2013 Report Share Posted March 6, 2013 Right, this is what's causing it to redirect. Every URL that is not a file or directory will redirect to index.php. wp-login.php is a file, so it works because of the rule RewriteCond %{REQUEST_FILENAME_} !-f The easiest solution is to comment out all the code that's in the htaccess file by preceding every line with a # Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.