| Author |
Message |
gschoper
Captain


Joined: Sep 16, 2003
Posts: 380
|
Posted:
Thu Oct 02, 2003 5:53 pm |
  |
I installed GoogleTap (cvs .GT files) on my nuke 6.5 site and now the site statistics index generated by my host are no longer viewable.
When I browse to http://nuke.schoper.net/stats/index.html I should see my main Webalizer index page. Instead I get a copy of the sites main page file with most of the images missing.
Is there something I can put in .htaccess or header.php to prevent this from happening?
TIA,
Greg
http://nuke.schoper.net |
_________________
http://nuke.schoper.net/ |
|
     |
 |
Audioslaved
Elite Nuker


Joined: Jun 14, 2003
Posts: 420
Location: Hawaii and The Fan Forum
|
Posted:
Thu Oct 02, 2003 8:24 pm |
  |
I don't know your exact setup, but why is it calling the stats directory, shouldn't it be http://nuke.schoper.net/stats.html if it was working correctly. I haven't seen GT using directories on rewrites, would you mind pasting the code for your stats module, I will compare it to the module to see what the rewrites should be, and post the code up here, with a working example on my test site. Thanks.
-Bill (Audioslaved) |
_________________ GT-NExtGEn: The future of GoogleTap
http://gt-nextgen.com/
The Audioslave Fan Forum
http://www.audioslaved.com |
|
     |
 |
Audioslaved
Elite Nuker


Joined: Jun 14, 2003
Posts: 420
Location: Hawaii and The Fan Forum
|
Posted:
Thu Oct 02, 2003 8:27 pm |
  |
Looking on your site, I noticed that link to stats did not work, it should be nuke.schoper.net/modules.php?name=Statistics |
_________________ GT-NExtGEn: The future of GoogleTap
http://gt-nextgen.com/
The Audioslave Fan Forum
http://www.audioslaved.com |
|
     |
 |
Audioslaved
Elite Nuker


Joined: Jun 14, 2003
Posts: 420
Location: Hawaii and The Fan Forum
|
Posted:
Thu Oct 02, 2003 8:29 pm |
  |
When looking at the CVS files, I do not see any rewrites for the Stats module in the header.php or the .htaccess, the distribution on the CVS does not contain a rewrite for the stats module. If you would like one, I will work on it for you. |
_________________ GT-NExtGEn: The future of GoogleTap
http://gt-nextgen.com/
The Audioslave Fan Forum
http://www.audioslaved.com |
|
     |
 |
gschoper
Captain


Joined: Sep 16, 2003
Posts: 380
|
Posted:
Thu Oct 02, 2003 8:33 pm |
  |
Sorry, I should have explained in a little more detail. The /stats/ directory is not nuke content. It is generated and placed in that directory by my service provider. It just happens to reside under the root of my php-nuke install and the rewrite rules appear to be doing somthing with the index.html file. All of the other files under /stats/ are viewable if you type their url into the browsers location bar, it's just the index.html file that is affected.
Is there something I can modify to tell it to exclude /stats/ ?
Greg |
_________________
http://nuke.schoper.net/ |
|
     |
 |
Audioslaved
Elite Nuker


Joined: Jun 14, 2003
Posts: 420
Location: Hawaii and The Fan Forum
|
Posted:
Thu Oct 02, 2003 9:04 pm |
  |
I need you to paste your .htaccess and header.php up here, It looks as though your rewrites are going to the stats directory, when they should not be. |
_________________ GT-NExtGEn: The future of GoogleTap
http://gt-nextgen.com/
The Audioslave Fan Forum
http://www.audioslaved.com |
|
     |
 |
gschoper
Captain


Joined: Sep 16, 2003
Posts: 380
|
Posted:
Thu Oct 02, 2003 9:15 pm |
  |
Both .htaccess and header.php are unmodified versions from cvs.nukecops.com downloaded today. |
_________________
http://nuke.schoper.net/ |
|
     |
 |
Audioslaved
Elite Nuker


Joined: Jun 14, 2003
Posts: 420
Location: Hawaii and The Fan Forum
|
Posted:
Thu Oct 02, 2003 9:18 pm |
  |
I think I got what your saying.
Grab the htaccess.SUBDOMAINS from the CVS and upload it to the stats directory, (make sure you rename it) this will turn rewrite off. You should then be able to view the content in the folder.
If you want rewrite on still, you should be able to drop the .htaccess.GT file in there and rewrite for that directory individually, am I off base here, let me know how that works. |
_________________ GT-NExtGEn: The future of GoogleTap
http://gt-nextgen.com/
The Audioslave Fan Forum
http://www.audioslaved.com |
|
     |
 |
gschoper
Captain


Joined: Sep 16, 2003
Posts: 380
|
Posted:
Thu Oct 02, 2003 9:28 pm |
  |
| Audioslaved wrote: |
I think I got what your saying.
Grab the htaccess.SUBDOMAINS from the CVS and upload it to the stats directory, (make sure you rename it) this will turn rewrite off. You should then be able to view the content in the folder.
If you want rewrite on still, you should be able to drop the .htaccess.GT file in there and rewrite for that directory individually, am I off base here, let me know how that works. |
I just tried this. Unfortunately I don't have write access to /stats/. My service provider must be doing something (sticky bit???) to prevent me from creating or modifying files under that one directory. |
_________________
http://nuke.schoper.net/ |
|
     |
 |
gschoper
Captain


Joined: Sep 16, 2003
Posts: 380
|
Posted:
Thu Oct 02, 2003 9:41 pm |
  |
I googled for "mod_rewrite exlcude directory" and came up with this:
| Code: |
RewriteCond %{REQUEST_URI} !^/stats
|
Which should exlude rewrites of all files under /stats, but this didn't work. I might not be placing it in the right area of /.htaccess. I put it directly under (line 15):
|
_________________
http://nuke.schoper.net/ |
|
     |
 |
Audioslaved
Elite Nuker


Joined: Jun 14, 2003
Posts: 420
Location: Hawaii and The Fan Forum
|
Posted:
Thu Oct 02, 2003 9:41 pm |
  |
You will have to contact your service provider and have them place that file in that directory. I do not believe there is any other way around this. Anyone else have any idea's.
-Bill (Audioslaved) |
_________________ GT-NExtGEn: The future of GoogleTap
http://gt-nextgen.com/
The Audioslave Fan Forum
http://www.audioslaved.com |
|
     |
 |
gschoper
Captain


Joined: Sep 16, 2003
Posts: 380
|
Posted:
Thu Oct 02, 2003 10:12 pm |
  |
I put in a request with my service provider to create the .htaccess file for me. I'll update this thread with the results when I get them.
Thanks for your help.
Greg |
_________________
http://nuke.schoper.net/ |
|
     |
 |
gschoper
Captain


Joined: Sep 16, 2003
Posts: 380
|
Posted:
Thu Oct 02, 2003 11:08 pm |
  |
My service provider created the .htaccess file for me and the problem went away.
Thanks for your help.
Greg |
_________________
http://nuke.schoper.net/ |
|
     |
 |
Audioslaved
Elite Nuker


Joined: Jun 14, 2003
Posts: 420
Location: Hawaii and The Fan Forum
|
Posted:
Thu Oct 02, 2003 11:26 pm |
  |
|
     |
 |
pitsch
Nuke Cadet


Joined: Aug 21, 2003
Posts: 7
|
Posted:
Mon Oct 20, 2003 4:18 am |
  |
Hello,
i have the same problem so this
| Quote: |
| RewriteCond %{REQUEST_URI} !^/stats |
helped me.
But now I want to have access to the directory stats and all existent subdirectories.
What have I to write in the .htaccess file to make this possible. Now the stats-mdoule works, but not the subdirectories under the stats-directory.
Please help me,
Andreas |
|
|
   |
 |
|
|