can't view separately installed stats (htaccess redirect?)

Having trouble installing serendipity?
Post Reply
tshcomm
Regular
Posts: 9
Joined: Fri Oct 20, 2006 3:51 am

can't view separately installed stats (htaccess redirect?)

Post by tshcomm »

hi. my sysadmin installs a stats program on each of my domains, but on this one i can't view my site.com/stats page because of the htaccess redirect. is there a workaround for this?

thanks in advance!
azel
Regular
Posts: 265
Joined: Thu Apr 21, 2005 4:28 am
Contact:

Post by azel »

Inserting RewriteEngine Off in your .htaccess should do the trick. :)
tshcomm
Regular
Posts: 9
Joined: Fri Oct 20, 2006 3:51 am

Post by tshcomm »

that won't break anything? isn't the rewrite on for security reasons and that will disable it?
judebert
Regular
Posts: 2478
Joined: Sat Oct 15, 2005 6:57 am
Location: Orlando, FL
Contact:

Post by judebert »

It'll break "pretty" URLs, but that's it. It's not a security thing, just an SEO thing.
Judebert
---
Website | Wishlist | PayPal
tshcomm
Regular
Posts: 9
Joined: Fri Oct 20, 2006 3:51 am

Post by tshcomm »

thanks for answering. i'd like to pursue having both, however....keep the seo while still viewing my stats directory. is this possible? with ones and zeros anything can be done 8)
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

You only need that .htaccess in subdirectories of your external applications. It does not effect the SEO-ness of Serendipity itself.

Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
tshcomm
Regular
Posts: 9
Joined: Fri Oct 20, 2006 3:51 am

Post by tshcomm »

please pardon my learning process :) but are you saying that i stick a .htaccess file with the rewrite engine off under the stats directory so that effects only that directory while the other htaccess still works the same for everything else?

if yes, then can you please tell me the exact wording to put inside the stats htaccess file?

thanks again!

allen
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

Exactly - .htaccess files will only affect all subdirectories and files inside the directory where you put a .htaccess. So, if you stick a .htaccess in any subdirectory, the .htaccess of any possible previous parent directory will still apply to the files within that parent directory, but no longer within the subdirectory, because this has its own .htaccess. :-)

The exact wording is:

Code: Select all

RewriteEngine Off
Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply