| | |||||
| ||||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | THREAD STARTER #1 (permalink) |
| Senior Member Join Date: Aug 2005 Location: East Yorkshire, England
Posts: 2,689
![]() ![]() ![]() ![]() ![]() ![]() ![]() | 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 ????: NamePros.com http://www.namepros.com/programming/497987-mod_rewrite-rewrite-everything-but-one-specific.html 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) |
| Senior Member Join Date: Mar 2005
Posts: 4,948
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 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 |
| |