wp subfolder installation with .htaccess problems
-
Hi. Two days ago I had a functioning website installed inside a subfolder under the html root folder. When visiting the root URL, the site inside the root folder launched, but kept the URL as the root. The way it should work.
This was version 4.5.2 on a PHP version 5.3 using pretty permalinks. Upon upgrading to PHP 5.6.21 through cPanel, the wordpress site suddenly started throwing 500 errors on me and it seems something is wonky with the .htaccess now. It seems the PHP upgrade is causing this issue.
– I have opened the wordpress general settings and confirmed and saved the correct root/subfolder settings there.
– I have changed the permalink settings to “plain” for now which makes the site work properly under the subfolder.
– I have copied the htaccess and index.php files to my root folder and changed the wp-blog-header to include the subfolder.
– I have tried several htaccess settings which redirects root to the subfolder but I cannot get the URL to “hide” the subfolder name.
Here is what I currently have inside my .htaccess to make it redirect to the subfolder:
# to Restrict Directory Listings Options -Indexes RewriteEngine On RewriteCond %{HTTP_HOST} ^(www.)?iact.edu.my$ RewriteRule ^(/)?$ college [L] RewriteCond %{QUERY_STRING} ^option=com_content&view=article&id=108&Itemid=252$ [NC] RewriteRule ^v2/$ http://iact.edu.my/contact-us? [L,R=301] RewriteCond %{QUERY_STRING} ^option=com_content&view=article&id=108&Itemid=252$ [NC] RewriteRule ^v2/$ http://iact.edu.my/contact-us? [L,R=301] Redirect 301 /en/student-community/about-creactive.shtml http://iact.edu.my Redirect 301 /en/student-community/about-creactive_portfolio.shtml http://iact.edu.my Redirect 301 /en/student-community/student-activities.shtml http://iact.edu.my Redirect 301 /en/student-community/activities-of-alumni.shtml http://iact.edu.my Redirect 301 /en/student-community/archive/20060301.html http://iact.edu.my Redirect 301 /en/student-community/archive/20050624.html http://iact.edu.my Redirect 301 /en/student-community/student-activities_archive.shtml http://iact.edu.my Redirect 301 /en/student-community/archive/20050815.html http://iact.edu.my Redirect 301 /en/student-community/archive/20050402.html http://iact.edu.my Redirect 301 /en/campus-facilities/campus-facilities1.shtml http://iact.edu.my Redirect 301 /v2/ipay88.html https://www.ipay88.com/VirtualLink/PaymentDetail.asp?Merchant=yroa54FagBCuPjBzNHT1UqAlFwk%3DM05127 Redirect 301 /v2/pdf/2014/iactscholarship2015_flyer.pdf http://iact.edu.my/college/wp-content/uploads/2014/09/2015-IACT-Scholarship-Form.pdf Redirect 301 /pdf/forms/registration-form-full-time.pdf http://iact.edu.my/admission-details/ Redirect 301 /pdf/registration_form.pdf http://iact.edu.my/admission-details/ # Special redirects for Google ADs Redirect 301 /mass-communication http://iact.edu.my/diploma-in-mass-communication Redirect 301 /media-communication http://iact.edu.my/ba-hons-media-culture-and-communication Redirect 301 /advertising-design http://iact.edu.my/ba-hons-advertising-and-design Redirect 301 /broadcasting http://iact.edu.my/diploma-in-broadcasting Redirect 301 /marketing-advertising http://iact.edu.my/diploma-in-marketing-and-advertising Redirect 301 /graphic-design http://iact.edu.my/diploma-in-graphic-design Redirect 301 /multimedia http://iact.edu.my/diploma-in-creative-multimedia Redirect 301 /media-studies http://iact.edu.my/foundation-in-media-studies Redirect 301 /communication-studies http://iact.edu.my/certificate-in-communication-studies # Remove OLD URLs Redirect 301 /adprentice http://iact.edu.my Redirect 301 /event http://iact.edu.my Redirect 301 /foundation http://iact.edu.my Redirect 301 /indigenous http://iact.edu.my Redirect 301 /jiatothepoweroftwo http://iact.edu.my Redirect 301 /nationalartcompetition.org http://iact.edu.my Redirect 301 /openday-old http://iact.edu.my Redirect 301 /photo2012 http://iact.edu.my Redirect 301 /vertex http://iact.edu.my <Files 403.shtml> order allow,deny allow from all </Files> deny from 5.196.15.237 deny from 46.105.46.191Please help me figure out how to keep the URL to look like root folder and enable permalinks properly.
The topic ‘wp subfolder installation with .htaccess problems’ is closed to new replies.