scottf Posted March 5, 2013 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 Link to comment Share on other sites More sharing options...
Labtec Posted March 5, 2013 Share Posted March 5, 2013 Are the pages which are not working even created? Regards, Lab. Link to comment Share on other sites More sharing options...
Ingolme Posted March 5, 2013 Share Posted March 5, 2013 So what is in your htaccess file? Link to comment Share on other sites More sharing options...
scottf Posted March 5, 2013 Author 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 Link to comment Share on other sites More sharing options...
Ingolme Posted March 6, 2013 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 # Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now