ciber Posted June 20, 2010 Share Posted June 20, 2010 I am currently having a problem, my site makes use of 2 scripts www.mysite.com makes use of an .htaccess file for wordpress and www.mysite.com/games/ makes use of its own .htaccess script too problem is the root directories htaccess file is interfering with the /games/ htacess as they both use rewriting of URLs, besides putting these into 2 sub directories of their own, is there any way of disabling the roots htaccess from interacting with the /games/ one? Thanks Quote Link to comment https://forums.phpfreaks.com/topic/205316-htaccess-interfering/ Share on other sites More sharing options...
cags Posted June 20, 2010 Share Posted June 20, 2010 Add a RewriteCond to the wordpress .htaccess. Something like RewriteCond %{REQUEST_URI} !^games/ Quote Link to comment https://forums.phpfreaks.com/topic/205316-htaccess-interfering/#findComment-1074600 Share on other sites More sharing options...
ciber Posted June 20, 2010 Author Share Posted June 20, 2010 I tried this already ... it just keeps giving me an error 404, as wordpress is unable to find it, even though im trying to access it via the games folder. This is what my wordpress htaccess is AddHandler application/x-httpd-php5 .php5 .php4 .php .php3 .php2 .phtml Options +FollowSymLinks # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteCond %{REQUEST_URI} !^games/ RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_URI} !^games/ RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> # END WordPress This is what my games folder htaccess is RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule index.php [L] Quote Link to comment https://forums.phpfreaks.com/topic/205316-htaccess-interfering/#findComment-1074608 Share on other sites More sharing options...
ciber Posted June 20, 2010 Author Share Posted June 20, 2010 nevermind, im just going to use subdirectories Quote Link to comment https://forums.phpfreaks.com/topic/205316-htaccess-interfering/#findComment-1074612 Share on other sites More sharing options...
ciber Posted June 20, 2010 Author Share Posted June 20, 2010 thanks for your help ... if i try spelling .htaccess correctly maybe it will work -.- Quote Link to comment https://forums.phpfreaks.com/topic/205316-htaccess-interfering/#findComment-1074651 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.