My .htaccess file:
# .htaccess for wiki site
AddDefaultCharset UTF-8
RewriteEngine On
Options FollowSymlinks
RewriteBase /
RewriteCond %{THE_REQUEST} !/robots.txt
RewriteCond %{THE_REQUEST} !/imgs/(.*)\.
RewriteCond %{THE_REQUEST} !/home/files/(.*)\.
RewriteCond %{THE_REQUEST} !/boltwire/farm/img/(.*)\.
RewriteRule ^(.*)$ home/index.php?p=$1 [QSA,L]
ErrorDocument 401 /home/index.php?p=main
ErrorDocument 403 /home/index.php?p=main
ErrorDocument 404 /home/index.php?p=main.404
# end
I am using CleanURL's. I have a robots.txt in the root of the website so I
am excluding it along with a directory called imgs from rewriting.
I am experimenting with ErrorDocument redirects as well. This is for sites
that were in a different format before converting to the wiki so that they
don't get plain 404 Errors from the server for content that no longer
exists.
I plan on changing this to use a smart redirector which can lookup old
content and redirect to new with a plugin.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"BoltWire" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/boltwire?hl=en
-~----------~----~----~----~------~----~------~--~---