Support » Fixing WordPress » .htaccess conflict

  • I’m running WordPress in a sub-folder at spicyisgood.com/videos but am encountering a .htaccess conflict. Both the root website and WordPress (/videos) have an .htaccess and it;s causing the search function of spicyisgood.com/videos to just bring up completely blank page. The programmer of the WP video theme says it a .htaccess conflict with root site .htaccess since WP is running in a sub-folder. How do I fix this conflict? My site is live and I need this rectified right away.

    Any help would be GREATLY appreciated!

    Here is the WordPress .htaccess of spicyisgood.com/videos/:

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

    Here is the root .htaccess of spicyisgood.com:

    <IfModule mod_dir.c>
        DirectoryIndex index.php
    </IfModule>
    
    <IfModule mod_headers.c>
    	Header set X-UA-Compatible "IE=edge"
    </IfModule>
    
    <IfModule mod_gzip.c>
        mod_gzip_on       Yes
        mod_gzip_dechunk  Yes
        mod_gzip_item_include file      \.(html?|txt|css|js|php|pl|jpg|png|gif)$
        mod_gzip_item_include handler   ^cgi-script$
        mod_gzip_item_include mime      ^text/.*
        mod_gzip_item_include mime      ^application/x-javascript.*
        mod_gzip_item_exclude mime      ^image/.*
        mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.*
    </IfModule>
    
    <IfModule mod_deflate.c>
    	AddOutputFilterByType DEFLATE text/html text/plain text/xml application/javascript 
    
    text/css
    </IfModule>
    
    <IfModule mod_expires.c>
    	ExpiresActive On
    	ExpiresDefault "access plus 1 month"
    	ExpiresByType application/javascript "access plus 1 year"
    	ExpiresByType text/css "access plus 1 year"
    	ExpiresByType image/* "access plus 1 year"
    </IfModule>
    
    RewriteEngine On
    RewriteBase /
    RewriteRule ^install/?$ install/index.php [QSA,L]
    RewriteRule ^freshadmin/?$ freshadmin/$1 [QSA,L]
    RewriteRule ^i/?$ library/phpThumb/index.php$1 [QSA,L]
    RewriteRule ^img/(.+).jpg$ image.php?n=productimage&var1=$1 [QSA,L]
    RewriteRule ^recommends/(.+)?$ linkfowarder.php?linkname=$1 [QSA,L]
    
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.+)$ index.php?q=$1 [QSA,L]
Viewing 5 replies - 1 through 5 (of 5 total)
  • Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    The programmer of the WP video theme says it a .htaccess conflict

    It could be but there is an easy way to check. Using FTP or whatever file management tools your host provides you with rename the .htaccess file in the root website to .htaccess-OLD. This is just a temporary measure and you can put it back after you’ve tested.

    Once that’s done visit your /videos URL. If it’s the root .htaccess file that is somehow causing your problem then the URL will work. If /videos still does not work then the problem lies elsewhere.

    Thread Starter deuce25

    (@deuce25)

    Hi Jan. I tried that and search function of /videos still didn’t work. I’ve seen the search function work fine with the video theme in a sub-folder on other sites.

    Where do I go from here?

    Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    Hi Jan. I tried that and search function of /videos still didn’t work.

    Well at least it’s not the .htaccess file.

    When I try a search like this one http://spicyisgood.com/videos/?s=tomato+salsa I’m getting a blank page too.

    Try deactivating all of your plugins and see if that search works. If it doesn’t work then also try switching to the Twenty Eleven theme and repeat that search.

    Hi deuce25,
    try this set up for the .htaccess of spicyisgood.com
    Hope this does it, also extra info here.
    Regards

    Thread Starter deuce25

    (@deuce25)

    Hi jnhghy,

    I tried your .htaccess but I just get an error message.

    500 Internal Error

    The requested page produced an internal error. If you are the webmaster of this website please check:
    That script has been uploaded as ASCII (if CGI/Perl)
    If the file and folder permissions are correct, e.g. 755
    Your .htaccess file (if any).

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘.htaccess conflict’ is closed to new replies.