Forums

Permalinks is getting all my trafic into word press (4 posts)

  1. anabelle
    Member
    Posted 6 years ago #

    Hi, i was searching but i couldn't find anything about this, how can i exclude some directories in my server from being catched by the worpress instalation. I have a little xoops installation in juaicaterra.huellaspyp.com (huellaspyp.com/juaicaterra) and now when i enter huellaspyp.com/juaicaterra my wordpress tells me "Sorry, no posts matched your criteria." and i need the sub folder running.
    how can i desactivate short urls to that folder, so it can be accesible like de wp-content folder?

  2. pizdin_dim
    Member
    Posted 6 years ago #

    This .htaccess rewrite rule will do what you want:

    RewriteRule ^juaicaterra/?$ /juaicaterra/index.php [QSA,L]

    I'm assuming you have and index.php file in the xoops directory. I'm also assuming you have RewriteBase / at the top of the .htaccess file.

    Just make sure you place that rule above the WP ones.

  3. di11rod
    Member
    Posted 5 years ago #

    How do you get it to exclude ALL content in the subfolder? In this case, you just add another rewrite of the URL to the index.php file. In that subfolder, I have .jpg, .html, .css, and all kids of stuff. I need to fix my htaccess to not try to rewrite anything in a specific subfolder.

    Any ideas?

    Appreciatively,

    di11rod

  4. di11rod
    Member
    Posted 5 years ago #

    My htaccess includes this--

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>

    # END WordPress

    My directory root contains a subfolder called /images/ that has a gallery installation. When I enable the above .htaccess, it breaks all requests to the subfolder for *.jpg, *.css, *.php, etc. I need to somehow exclude that subfolder from rewriting. What should I do?

    Appreciatively,

    di11rod

Topic Closed

This topic has been closed to new replies.

About this Topic