Home » Htaccess Tools » Questions regarding htaccess » htaccess issue
htaccess issue [message #877] Sun, 03 February 2008 02:03 Go to next message
jshpik1  is currently offline jshpik1
Messages: 1
Registered: August 2007
I'm having an issue with this. I've installed media wiki in a sub directory. I'm using phpbb2 in my main directory. Here's my file rewrites:

RewriteEngine On 
RewriteBase /

# Media Wiki
RewriteCond         %{REQUEST_URI} !index.php
RewriteCond         %{REQUEST_FILENAME}  -f [OR]
RewriteCond         %{REQUEST_FILENAME}  -d [OR]
RewriteCond         %{REQUEST_FILENAME}  -l
RewriteRule  ^(.+)  $1  [L]

# redirect to main page
RewriteRule ^/*$ /index.php?title=Main_Page [L,QSA]

# anything else is to be treated as a title
RewriteCond         %{REQUEST_URI} !index.php
RewriteRule ^(.+)$ /index.php?title=$1 [L,QSA]

# Redirect from http://metalhead.tc to http://www.metalhead.tc
RewriteCond %{HTTP_HOST} ^metalhead.tc [NC]
RewriteRule ^(.*)$ http://www.metalhead.tc/$1 [L,R=301]

# FORUM INDEX (un-comment if used)
# RewriteRule ^index\.html$ /index.php [QSA,L,NC]
# FORUM PROTECTION RULE
# RewriteRule ^[a-z0-9_-]+/([^/]+\.html)$ /index.php [R=301,L,NC]
# CATEGORIES
RewriteRule ^[a-z0-9_-]*-c([0-9]+)\.html$ /index.php?c=$1 [QSA,L,NC]
# PAGINATED FORUM
RewriteRule ^[a-z0-9_-]*-f([0-9]+)-([0-9]+)\.html$ /viewforum.php?f=$1&start=$2 [QSA,L,NC]
# FORUM
RewriteRule ^[a-z0-9_-]*-f([0-9]+)\.html$ /viewforum.php?f=$1 [QSA,L,NC]
# PAGINATED TOPIC
RewriteRule ^[a-z0-9_-]*-t([0-9]+)-([0-9]+)\.html$ /viewtopic.php?t=$1&start=$2 [QSA,L,NC]
# TOPIC
RewriteRule ^[a-z0-9_-]*-t([0-9]+)\.html$ /viewtopic.php?t=$1 [QSA,L,NC]
# POST
RewriteRule ^post([0-9]+)\.html$ /viewtopic.php?p=$1 [QSA,L,NC]
#PROFILES
RewriteRule ^member([0-9]+)\.html$ /profile.php?mode=viewprofile&u=$1 [QSA,L,NC]
# RSS main
RewriteRule ^rss-?(l|s)?-?(m)?\.(xml(\.gz)?)$ /rss.php?$1&$2 [L]
# RSS forums
RewriteRule ^forums-rss-?(l|s)?-?(m)?\.(xml(\.gz)?)$ /rss.php?forum&c&$1&$2 [L]
# RSS all
RewriteRule ^([a-zA-Z0-9_-]+)-rss([0-9]*)-?(l|s)?-?(m)?\.(xml(\.gz)?)$ /rss.php?$1=$2&$3&$4 [L]
# RSS forum topics
RewriteRule ^.+-rf([0-9]+)-?(l|s)?-?(m)?\.(xml(\.gz)?)$ /rss.php?forum=$1&$2&$3 [L]
# SitemapIndex
RewriteRule ^sitemaps\.(xml(\.gz)?)$ /sitemap.php [L]
# Sitemap modules
RewriteRule ^([a-zA-Z0-9_-]+)-sitemap\.(xml(\.gz)?)$ /sitemap.php?$1 [L]
# Forum Sitemaps
RewriteRule ^.+-gf([0-9]+)\.(xml(\.gz)?)$ /sitemap.php?forum=$1 [L]
# Yahoo! urllist.txt
RewriteRule ^urllist\.(txt(\.gz)?)$ /urllist.php [L]


It's redirecting to my main index page from the new wiki urls. Why?@?@?
Re: htaccess issue [message #927 is a reply to message #877 ] Fri, 18 April 2008 18:17 Go to previous message
andreas  is currently offline andreas
Messages: 239
Registered: January 2005
Location: Denmark

Site Admin
I have no idea.
Previous Topic:help with topsites spam
Next Topic:How to Allow Access from HTTP Referer?
Goto Forum:
  


Current Time: Sat May 17 07:40:57 CEST 2008

Powered by: FUDforum 2.7.7.
Copyright ©2001-2007 FUD Forum Bulletin Board Software