Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Coding Forum


You are currently viewing our Coding Forum as a guest. Please register to participate.
Login



Reply
Old 08-04-2005, 07:18 PM URL rewrite problem
ajb
Junior Talker

Posts: 2
Trades: 0
Hi,

I am having trouble with my website using a rewrite rule.

Everything works great except for one directory that wordpress' rewrite is overriding an existing rule created by my webhost.

if you type in mydomain.com/page123 and page123 doesn't exist, my wordpress install will say it cannot be found, and that is the end of that.

But my problem is, my host has analog stats for my domain set at mydomain.com/stats

now, since there is nothing there, wordpress' rewrite engine treats it like any other situation, but what I need to do it make it so the rewrite engine will ignore mydomain.com/stats so I can log into my analog stats index

I have full permissions to the .htaccess file where these rules are written in.
If someone would help me by telling my how to exclude this directory (mydomain.com/stats), that would be great.

Any help will be greatly appreciated.

Thanks
ajb is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 08-05-2005, 04:39 AM
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,517
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
use a rewriteCond before the rewrite rules

rewriteCond %{REQUEST_URI}!^/stats/

should work I believe, though not tested.
It should work out as;
rewrite URI IF FolderName NotEqualTo "/stats/"
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 08-05-2005, 03:07 PM
ajb
Junior Talker

Posts: 2
Trades: 0
Quote:
Originally Posted by chrishirst
use a rewriteCond before the rewrite rules

rewriteCond %{REQUEST_URI}!^/stats/

should work I believe, though not tested.
It should work out as;
rewrite URI IF FolderName NotEqualTo "/stats/"

Thank you for your reply chrishirst.

The rewrite rule
Code:
 RewriteCond %{REQUEST_URI}!^/stats/
Is returning an Internal Server Error response, so it does not seem to be compatible.


Is there any other way to ignore this symbolic directory?
As I noted earlier, this is not an actual directory on my local user, it is a preexisting rewritten symbolic directory that represents the analog stats script on my web host's machine, and that is why this situation is a slippery one. I have some research of my own on this topic, but I do not have the general technical knowledge to fully understand it, so I appreciate any help on this matter


Thanks

-Adam
ajb is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to URL rewrite problem
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.36732 seconds with 12 queries