Camen Design Forum

Delete

(Leave this as-is, it’s a trap!)

To delete this post you must be either the original author or a designated moderator.
The content of the post will be removed but the name and date will remain.

  • The post will be removed completely from the thread, rather than blanked
  • Only posts on the last page of the thread can be removed completely (so as to not break permalinks)

RE: How to use this forum?

Kroc

Oh, I just spotted a mistake. I forget that the PHP files are in the root of the folder, and shouldn't include the path being accessed.

Replace the relevent htaccess stuff with this corrected version.

~~~
# a folder
RewriteCond %{REQUEST_URI} ^/folder/[^./&]+/$
RewriteCond %{DOCUMENT_ROOT}%0 -d
RewriteRule ^folder/(?:([^./&]+)/)?$ /folder/index.php?path=$1 [QSA,L]

# a thread
RewriteCond %{REQUEST_URI} ^/folder/([^./&]+/)?([^./]+)$
RewriteCond %{DOCUMENT_ROOT}%0.xml -f
RewriteRule ^folder/(?:([^./&]+)/)?([^./]+)$ /folder/thread.php?path=$1&file=$2 [QSA,L]

# an index RSS feed
RewriteCond %{REQUEST_URI} ^/folder/([^./&]+/)?index.rss$
RewriteRule ^folder/(?:([^./&]+)/)?index.rss$ /folder/rss.php?path=$1 [QSA,L]
~~~

Your friendly neighbourhood moderators: Kroc, Impressed, Martijn