The Design of Software (CLOSED)

A public forum for discussing the design of software, from the user interface to the code architecture. Now closed.

The "Design of Software" discussion group has been merged with the main Joel on Software discussion group.

The archives will remain online indefinitely.

Help with Apache mod rewrite

I'm trying to setup an Apache mod rewrite rule to change all:

where 4 can be any number and I'm getting nowhere.

This is one of many attempts:

RewriteEngine on
RewriteRule ^/wordpress/(\?cat=.*)$$1 [R,L]

I'm putting this in .htaccess and it doesn't do anything.

If this forum isn't appropriate can someone suggest alternatives. Thanks.
Neville Franks Send private email
Tuesday, January 03, 2006
Do you have logging turned on? I've found the mod_rewrite logs are extremely useful for troubleshooting. Adding the following will log EVERYTHING; ratchet the RewriteLogLevel down through 1 to be less verbose.

RewriteLog /path/to/rewrite.log
RewriteLogLevel 9
Chris Winters Send private email
Tuesday, January 03, 2006
If you control the full configuration, just set the document root of the "blog" virtual host to the wordpress directory.  Or ask the configuration owner to do it.  mod_rewrite should be used sparingly.
Matt Brown
Tuesday, January 03, 2006
Thanks folks. I've re-jigged the Wordpress installation so I don't need the rewrite rule any more and all is well.
Neville Franks Send private email
Tuesday, January 03, 2006

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics
Powered by FogBugz