Jump to content

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]

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.