DarkWater Posted June 12, 2008 Share Posted June 12, 2008 Where do you have this located? It's in the main folder, correct? Quote Link to comment Share on other sites More sharing options...
suntracker Posted June 12, 2008 Author Share Posted June 12, 2008 /httpdocs/index.php /httpdocs/.htaccess /httpdocs/mediawiki/ The two rules you made for me yesterday work just fine: RewriteRule ^mediawiki/index.php/(.+)$ index.php?wiki=$1 [R=301] RewriteRule ^mediawiki/index.php/(.+)/$ index.php?wiki=$1 [R=301] Except it operates on URL's of the form /mediawiki/index.php/Desired_Page instead of /mediawiki/index.php?title=Desired_Page RewriteRule ^mediawiki/index.php?title=(.+)$ index.php?wiki=$1 [R=301] does not work on http://foo.com/mediawiki/index.php?title=Desired_Page Quote Link to comment Share on other sites More sharing options...
DarkWater Posted June 12, 2008 Share Posted June 12, 2008 Here: RewriteRule ^mediawiki/index\.php\?title=(.+)$ index.php?wiki=$1 [R=301] Quote Link to comment Share on other sites More sharing options...
suntracker Posted June 12, 2008 Author Share Posted June 12, 2008 I had already tried that. There must be something else wrong here... something we're not seeing. Quote Link to comment Share on other sites More sharing options...
suntracker Posted June 17, 2008 Author Share Posted June 17, 2008 After much frustration I now have code to do what I want: Options +FollowSymLinks RewriteEngine On RewriteCond %{QUERY_STRING} !^(.*&)action=submit(&.*)?$ [NC] RewriteCond %{QUERY_STRING} !^(.*&)?mod_rewrite=no(&.*)?$ [NC] RewriteCond %{QUERY_STRING} ^(.*&)?title(=.+)$ [NC] RewriteRule ^mediawiki/index\.php$ /index.php?%1wiki%2 [R=301,L] RewriteRule ^mediawiki/index\.php/(.*[^/])/?$ /index.php?wiki=$1 [R=301,L] Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.