I moved my site to register1 recently and some of my .htaccess rules don't quite work:
Code:
Options +MultiViews
RewriteEngine on
RewriteRule ^/forum$ /forum.php
On my old host (34sp.com) this rewrote requests to /forum to /forum.php as it should. But on my new host it goes to /forum/ which is a folder holding a phpBB installation.
Rewrites like this work OK when the forum dir is renamed but I'd like to keep things as they were on my old host.
If your new host is using Apache 2, you can use the DirectorySlash directive. Otherwise, your best bet would be to rename the forum directory and add an additional RewriteRule to make it work like it did before.
________________________________ It's turtles all the way down...
BenPollinger Junior WebHelper
Joined: 11 Aug 2006
Posts: 5
Location: Leeds
Posted:
Sat Aug 12, 2006 1:42 pm (19 years ago)
Thanks for the quick reply Adam - easiest to do some renaming in this case.
34SP use Apache 1.3.33 but Register1 use v2 - this seems to be part of the reason for change
You cannot post new topics in this forum. You cannot reply to topics in this forum. You cannot edit your posts in this forum. You cannot delete your posts in this forum. You cannot vote in polls in this forum.