13, February 2012

rewrite rules for wordpress - webmaster forum

 
Webdigity webmaster forums
[ 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
Instabuck - The easy way to sell digital products online

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


It's time to use PHP5!


« on: Aug 29, 2006, 11:42:53 am »

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 : A new Wordpress theme for our blog
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 5778
46265 credits
Members referred : 3



« Reply #1 on: Aug 29, 2006, 11:46:45 am »


Trial and Error my two best teachers Cool
Join us @ facebook or twitter

Last blog : Butterfly Marketing 2.0
Global Moderator
Internet Junkie
*****
Gender: Male
Posts: 1807
9006 credits
Members referred : 6



« Reply #2 on: Aug 29, 2006, 11:51:52 am »

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 link that explains the flags
« Last Edit: Aug 29, 2006, 11:57:22 am by Mind_nl »


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


It's time to use PHP5!


« Reply #3 on: Aug 29, 2006, 12: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 : A new Wordpress theme for our blog
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 5778
46265 credits
Members referred : 3



« Reply #4 on: Aug 29, 2006, 12: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
Join us @ facebook or twitter

Last blog : Butterfly Marketing 2.0
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6691
34714 credits
Members referred : 374


It's time to use PHP5!


« Reply #5 on: Aug 29, 2006, 12: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 : A new Wordpress theme for our blog
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 5778
46265 credits
Members referred : 3



« Reply #6 on: Aug 29, 2006, 12: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
Join us @ facebook or twitter

Last blog : Butterfly Marketing 2.0
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6691
34714 credits
Members referred : 374


It's time to use PHP5!


« Reply #7 on: Aug 29, 2006, 01: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/


Last blog : A new Wordpress theme for our blog
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 5778
46265 credits
Members referred : 3



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

What if you do this :

RewriteCond %{REQUEST_URI} !^/stats/$

Trial and Error my two best teachers Cool
Join us @ facebook or twitter

Last blog : Butterfly Marketing 2.0
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6691
34714 credits
Members referred : 374


It's time to use PHP5!


« Reply #9 on: Aug 29, 2006, 01: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 : A new Wordpress theme for our blog
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6691
34714 credits
Members referred : 374


It's time to use PHP5!


« Reply #10 on: Aug 29, 2006, 01: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 : A new Wordpress theme for our blog
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....

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?
Feb 13, 2012, 05:12:45 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!






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