Pretty Permalinks Question
-
Yes, I know. There’s oodles of info out there on this issue. I’ve been trying every solution from every thread I’ve found (and the solutions in the codex) and none seems to be working. I’m pretty sure AllowOverride is “on” on the client’s server, as pretty much everything I put in the .htaccess file is working (except for this permalink thing).
Honestly, I think it’s the way I have WordPress set up. I did the thing where you upload WordPress into it’s own folder, but you put in a new index page in the root with the “require wp_head” stuff in it, and change the path in Admin. This is all working fine and dandy.
I should note I also had to put in an override in .htaccess to make the server look at “index.php” to be served up as the index page, rather than showing a list of files when no index.html file is present (which is what it *was* doing).
I am also trying to serve up a static front page – basically because the index page has a slightly different template than the inside pages.
I have tried everything I can find (as I’ve said) to make the pretty permalinks happen. It looks as though the .htaccess *is* doing what it’s supposed to do: when you mouse over the nav links, you can see the URL *has* changed to the “pretty” structure, but when you click on it, the “Not Found” error comes up. I looked at the server logs, and this is the error that shows (for many variations on attempts at making this work):
[Thu Sep 7 19:35:02 2006] [error] [client xx.xx.xx.xx] File does not exist: /usr/local/etc/httpd/vhosts/DOMAINNAMEHERE.org/htdocs/archives/category/about/
That’s the initial error I get when the initial permalink setup is chosen (name & number is what I want).
Then I tried to put in the <directory> trick shown in this post, and *every time* I end up with an internal server error. The error log reads as such:
[Fri Sep 8 08:30:15 2006] [alert] [client xx.xx.xx.xx] /usr/local/etc/httpd/vhosts/DOMAINNAMEHERE.org/htdocs/.htaccess: Invalid command ‘<Directory>’, perhaps mis-spelled or defined by a module not included in the server configuration
When I tried to place it in the WordPress folder (one level down) it tells me pretty much the same thing – and that <Directory” isn’t allowed in a subfolder.
Currently, the .htaccess file looks like this:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /index.php/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php/index.php [L]
</IfModule><Files .htaccess>
order allow,deny
deny from all
</Files>DirectoryIndex index.php
(I removed the <directory> stuff because every time I put it in, it would give the entire domain an internal server error – and although this is a site I’m currently working on and isn’t live, there *is* a live site on the server right now, and I can’t shut that down.)
I’ve also tried changing the permissions of the .htaccess file to everything under the sun. Even left it at 777 for a while (although it’s currently at 644).
Would anyone have any ideas on how I can edit this or fix it to get the permalinks working? I’m getting a headache from reading so much stuff out there and trying it out. (and to reiterate, I’ve already tried the stuff listed here.)
Any ideas or help would be appreciated.
The topic ‘Pretty Permalinks Question’ is closed to new replies.