#anchor links are not sent to web servers, they are local web browser only. I suspect for the purposes of mod_rewrite you can ignore them.

3 Likes

Cool. Still no word from Archive. Not sure what’s up there.

ok. it’s all fixed. overall not too many hours of work, but enough. thanks for your help everyone.

past preserved.

10 Likes

ok, modrewrite is not quite right:

RewriteRule ^/community(.*) http://archive.monome.org/community$1

this is great for backwards compatibility with .html-less links, but it breaks the base url’s:

http://archive.monome.org/community
http://archive.monome.org/community/

any suggestions to fix this but keep the fix for extension stripping?

How about this?

RewriteRule ^.*community(/|)$ http://archive.monome.org/community [L]
RewriteRule ^(.*)[^\.html]$ $1.html
```
This tester is very helpful:
http://htaccess.mwl.be/

ok, reviving this because it never got fixed, which makes the archive look just broken. that tester site doesn’t support the query unfortunately.

again here’s what i’m using

RewriteCond %{SCRIPT_FILENAME} !-d
RewriteRule ^([^.]+)$ $1.html [NC,L]

/community

../community.html

and

/community/

/.html

i’m hoping to simply have an overriding condition that the root is not treated by the condition.

So nothing I suggested worked? It’s hard to write rewrite rules without testing them. I don’t have access to your web server and content. That’s why I just limited myself to syntax the tester does support. The suggestions I made appeared to work in the tester. Maybe somebody else around here is a better apache/regex wizard than I am.