Jump to content

htaccess interfering


ciber

Recommended Posts

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

Link to comment
https://forums.phpfreaks.com/topic/205316-htaccess-interfering/
Share on other sites

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]

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.