13, May 2008

rewrite rules for wordpress - webmaster forum

 
Webdigity webmaster forums
This forum shares its ad revenue with its members!
[ Home | Help | Search | Forum's Shop | Archive | Login | Register | Webmaster Directory ]
Webdigity Webmaster Forums  >  Web hosting talk  >  Configuring your server  >  Apache web server
Topic: rewrite rules for wordpress
« previous next »
Pages: [1] Print

Author Topic: rewrite rules for wordpress  (Read 1297 times)
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6236
38242 credits
Members referred : 374


It's time to use PHP5!


« on: Aug 29, 2006, 12:42:53 PM »

Hi,

just noticed that I can't access the stats of my words press blog site because of the rewrite rules.

What are this flags ate the end of each condition?

Code:
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>


Last blog : Database Management with phpMyAdmin
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 7824
39879 credits
Members referred : 3



« Reply #1 on: Aug 29, 2006, 12:46:45 PM »


Trial and Error my two best teachers Cool
Promote your blog for free.... Visit through proxy

Last blog : Keep it Legal - Tims guide to legal notices
Global Moderator
Internet Junkie
*****
Gender: Male
Posts: 1807
9006 credits
Members referred : 6



« Reply #2 on: Aug 29, 2006, 12:51:52 PM »

RewriteCond %{REQUEST_FILENAME} !-f checks if the requested filename exists
RewriteCond %{REQUEST_FILENAME} !-f checks if the requested directory exists

if they don't your index.php will be served, but I'm not sure what this has got to do with your stats not showing...

edit: found this Visit through proxy link that explains the flags
« Last Edit: Aug 29, 2006, 12:57:22 PM by Mind_nl »


Last blog : Are You Stumbling Yet?
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6236
38242 credits
Members referred : 374


It's time to use PHP5!


« Reply #3 on: Aug 29, 2006, 01:31:55 PM »

cool didn't know that feature... the "stats" directory is not real (these start are provided by the hosting)
so I need to add another condition there:

RewriteCond %{REQUEST_URI} !^/stats[/]?$

but that doesn't work...



Last blog : Database Management with phpMyAdmin
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 7824
39879 credits
Members referred : 3



« Reply #4 on: Aug 29, 2006, 01:48:49 PM »

A simple solution (with these rules) is to create that directory, and put nothing on it.

I think this will work. Otherwise I think no rule is going to help

Trial and Error my two best teachers Cool
Promote your blog for free.... Visit through proxy

Last blog : Keep it Legal - Tims guide to legal notices
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6236
38242 credits
Members referred : 374


It's time to use PHP5!


« Reply #5 on: Aug 29, 2006, 01:53:51 PM »

A simple solution (with these rules) is to create that directory, and put nothing on it.

I think this will work. Otherwise I think no rule is going to help
No it doesn't work... maybe because this stats are password protected


Last blog : Database Management with phpMyAdmin
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 7824
39879 credits
Members referred : 3



« Reply #6 on: Aug 29, 2006, 01:58:22 PM »

Your problem is that the stats are a link directory, and the mod_rewrite rule overcomes it.

When you regullarly use the /stats directory, is it redirecting you somewhere, or it loads the stats in the same page?

Trial and Error my two best teachers Cool
Promote your blog for free.... Visit through proxy

Last blog : Keep it Legal - Tims guide to legal notices
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6236
38242 credits
Members referred : 374


It's time to use PHP5!


« Reply #7 on: Aug 29, 2006, 02:00:28 PM »

Your problem is that the stats are a link directory, and the mod_rewrite rule overcomes it.

When you regullarly use the /stats directory, is it redirecting you somewhere, or it loads the stats in the same page?
it load the stats in the same page...
if I use it on another domain its something like http://www.domain.com/stats/ Visit through proxy


Last blog : Database Management with phpMyAdmin
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 7824
39879 credits
Members referred : 3



« Reply #8 on: Aug 29, 2006, 02:02:07 PM »

What if you do this :

RewriteCond %{REQUEST_URI} !^/stats/$

Trial and Error my two best teachers Cool
Promote your blog for free.... Visit through proxy

Last blog : Keep it Legal - Tims guide to legal notices
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6236
38242 credits
Members referred : 374


It's time to use PHP5!


« Reply #9 on: Aug 29, 2006, 02:06:28 PM »

What if you do this :

RewriteCond %{REQUEST_URI} !^/stats/$

I thought I posted a similar rule above, but I give it a try


Last blog : Database Management with phpMyAdmin
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6236
38242 credits
Members referred : 374


It's time to use PHP5!


« Reply #10 on: Aug 29, 2006, 02:09:03 PM »

its not my dat Sad

I used this rule before (to take care about a missing traling slash)
RewriteCond %{REQUEST_URI} !^/stats[/]?$

and it doesn't work but this one is fine:
RewriteCond %{REQUEST_URI} !^/stats/$


Last blog : Database Management with phpMyAdmin
Trackback URI for this entry : http://www.webdigity.com/trackback.php?topic=3871
Tags : blogs domains mod_rewrite Bookmark this thread : Digg Del.icio.us Dzone more....

Topic sponsors:
Get a permanent link here for $1.99!


Pages: [1] Print 
Webdigity Webmaster Forums  >  Web hosting talk  >  Configuring your server  >  Apache web server
Topic: rewrite rules for wordpress
« previous next »
Jump to:
User Area
Welcome, Guest. Please login or register.
Did you miss your activation email?
May 13, 2008, 05:06:59 PM





Login with username, password and session length

Donate to our community, and get a permanent link back to your site!

Donate to our community, and get a permanent link back to your site!


Forum Statistics
Total Posts: 34.931
Total Topics: 7.262
Total Members: 3.482
Tutorials : 56
Resources : 143
Designs : 220
Latest Member: ondho

20 Guests, 2 Users online :

11 users online today:



Readers

Web Design Gallery · Whois Lookup · Pagerank · Tag Browsing · Lo-fi version · Syndication · Webmaster forum history · Advertise
Developed by HumanWorks © 2005 - 2008 Webdigity webmaster community · sublime directory
Webdigity Webmaster Forums | Powered by SMF 1.0.12. © 2001-2005, Lewis Media. All Rights Reserved.