TECH Help me fix my mod rewrite please

Ricky

█▄ █▄█ █▄ ▀█▄
Jun 17, 2005
38,834
I never used it before but i was fucking around with it.

http://www.offtopic.me

Basically i want it to do what its doing now, but only to the /wiki/ folder.

I would like the rest of links/pictures everything else to not be redirected to that wiki folder.

My htaccess code:

Code:
AddType x-mapp-php5 .php
RewriteEngine On
RewriteCond %{REQUEST_URI} !^/w.*/
RewriteRule ^(.*) /wiki/index.php/$1 [L]


I really hope that made sense. I havent slept since 12pm yesterday so :o
 
TS
TS
Ricky

Ricky

█▄ █▄█ █▄ ▀█▄
Jun 17, 2005
38,834
no early christmas gift for me i guess
 

whup

I wish you had children and.. so that I could step
Feb 12, 2007
1,592
Code:
RewriteCond %{REQUEST_URI} !^/wiki/
RewriteRule !\.(\w+)$ /wiki/index.php/$1 [L,NS]

That should redirect any files that don't end in a dot extension (e.g. .gif, .png) to the wiki, and shouldn't touch any wiki URLs.
 

Users who are viewing this thread

About Us

  • Please do not post anything that violates any Local, State, Federal or International Laws. Your privacy is protected. You have the right to be forgotten. Site funded by advertising, link monetization and member support.
OT v15.8.1 Copyright © 2000-2022 Offtopic.com
Served by fu.offtopic.com

Online statistics

Members online
454
Guests online
48
Total visitors
502

Forum statistics

Threads
369,524
Messages
16,891,885
Members
86,873
Latest member
vitalesan