| |||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | #1 (permalink) |
| Barru. | mod_rewrite - Rewrite everything BUT one specific URI. Here's my current .htaccess: Code: # BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
I use DreamHost and so to access the stats I have to go to www.domain.com/stats/, but that is being rewritten and treated like a wordpress page name - which it obviously isn't. I'm also using Google Analytics for stats, but I'd prefer to see the DreamHost ones.
__________________ |
| |
| | #2 (permalink) |
| NPQ's PA, Slave, and On Call Coder Technical Services | hmmn, you could try Code: # BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !^/stats/$
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
__________________ |
| |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| |