Skip to Content.
Sympa Menu

lyceum-users - Re: [Lyceum-users] non-default permalinks and rewrite rules

lyceum-users AT lists.ibiblio.org

Subject: Lyceum-users mailing list

List archive

Chronological Thread  
  • From: "Craig" <mrcraig61 AT lycos.co.uk>
  • To: <lyceum-users AT lists.ibiblio.org>
  • Subject: Re: [Lyceum-users] non-default permalinks and rewrite rules
  • Date: Tue, 14 Nov 2006 01:47:24 -0000

Hi all,

I've got most of my site working now, single post pages and categories for
now, hte rest to follow.

I'm not sure if I found the problem or have just worked around it, but I
installed the latest WP alongside my lyceum install and that worked a treat.
I changes the permalinks to my config and then I've hacked them to work for
lyceum. Sorted ;-)

There seems to be conflicting info about how wp permalinks (.htaccess) work.
Codex says that your file is generated acording to your permalinks yet
everyone on the forums has the same rules, so I don't know what's going on
really.

Has anyone else used a non-default set of permalinks?

BTW this plugin came in really handy and I'll be leaving it installed:
http://dev.wp-plugins.org/browser/dump_env/trunk/dump_env.php

PS The end of my .htaccess file now looks like this :
RewriteRule ^([^/]+)/([^/]+)-([0-9]+)(/[0-9]+)?/?$
index.php?b=$1&p=$3&page=$4 [QSA,L]
RewriteRule ^([^/]+)/category/(.+)/feed/(feed|rdf|rss|rss2|atom)/?$
index.php?b=$1&category_name=$2&feed=$3 [QSA,L]
RewriteRule ^([^/]+)/category/(.+)/(feed|rdf|rss|rss2|atom)/?$
index.php?b=$1&category_name=$2&feed=$3 [QSA,L]
RewriteRule ^([^/]+)/category/(.+)/page/?([0-9]{1,})/?$
index.php?b=$1&category_name=$2&paged=$3 [QSA,L]
RewriteRule ^([^/]+)/category/(.+)/?$ index.php?b=$1&category_name=$2
[QSA,L]

### I'm pretty sure we'll never need these -jjb ###
# RewriteCond %{REQUEST_URI} !^(.+)/admin(.*)
# RewriteCond %{REQUEST_URI} !^(.+)/index.php(.*)

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule ^([^/]+)/? /mikeey09876/lyceum/index.php?b=$1 [L]

Thanks,
Craig






Archive powered by MHonArc 2.6.24.

Top of Page