Forum Moderators: phranque

Message Too Old, No Replies

Configuring my .htaccess file to work properly

         

weexpectedthis

10:49 pm on Mar 26, 2007 (gmt 0)

10+ Year Member



My current site has a setup where all requests go through a single controller. The root of my site is at:
public_html/startontop

My controller file is at:

public_html/startontop/new/www/index.php

My domain name points to public_html/startontop, so I have a .htaccess file at the location which looks like:

RewriteEngine on
RewriteBase /
RewriteRule ^images/(.*)$ new/www/images/$1 [NC,QSA,L]
RewriteRule ^css/(.*)$ new/www/css/$1 [NC,QSA,L]
RewriteRule ^js/(.*)$ new/www/js/$1 [NC,QSA,L]
RewriteRule (.*)$ new/www/index.php?requestName=$1 [NC,QSA,L]

The problem is I just installed Wordpress at public_html/startontop/wp and all requests to it are getting redirected to:

public_html/startontop/new/www/index.php

Does anyone know what lines I can add to this file to have it ignore all requests to "wp.*"?

jdMorgan

11:13 pm on Mar 26, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Place this at the top of the other rules:

# If requested URL starts with "wp", leave it as-is, and quit mod_rewrite processing
RewriteRule ^wp - [L]

Jim

weexpectedthis

11:55 pm on Mar 26, 2007 (gmt 0)

10+ Year Member



Oh you rock jd