pabloignaciod 1 Posted January 20, 2019 Share Posted January 20, 2019 After successfully enable friendly URLs on my site (previously enabled mod_rewrite and created .htacces file as below) i´m having some issues when trying to reach specific posts/categories/sections all across the site. i.e Friendly URLs disable: https://www.armacls.com/index.php?app=forums&module=forums&controller=forums&id=3 > I'm able to open this topic Friendly URLs enable: https://www.armacls.com/forums/forum/3-centro-de-alistamiento/?id=3 > Error 1S160/2. Not Found "main" sections like "/forums /calendar /donate" are available after enabling friendly urls. The issue cames after trying to access a "second level" information. My .htacces: <IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{HTTPS} off [OR] RewriteCond %{HTTP_HOST} !^www\. [NC] RewriteCond %{HTTP_HOST} ^(?:www\.)?(.+)$ [NC] RewriteRule ^ https://www.%1%{REQUEST_URI} [L,NE,R=301] Options -MultiViews RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteRule \.(js|css|jpeg|jpg|gif|png|ico|map)(\?|$) /404error.php [L,NC] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> Any idea on how to solve this? I hope I've explained myself correctly. Sorry for the bad English. Link to comment Share on other sites More sharing options...
mr-pimpen 387 Posted January 20, 2019 Share Posted January 20, 2019 i dont think your site is setup right if you have that enabled than the index should go away i dont see that doing so when I load your site, I was like a vampire, slept for thousands of years and just now is my first glimpse of light haha. Link to comment Share on other sites More sharing options...
ares11 0 Posted January 20, 2019 Share Posted January 20, 2019 I don't know Link to comment Share on other sites More sharing options...
mr-pimpen 387 Posted January 20, 2019 Share Posted January 20, 2019 (edited) was it working be you add this RewriteCond %{HTTPS} off [OR] RewriteCond %{HTTP_HOST} !^www\. [NC] RewriteCond %{HTTP_HOST} ^(?:www\.)?(.+)$ [NC] RewriteRule ^ https://www.%1%{REQUEST_URI} [L,NE,R=301] this is what i see on my end and it look ok your site and this is not how i see this https://www.armacls.com/index.php?app=forums&module=forums&controller=index Edited January 20, 2019 by mr-pimpen when I load your site, I was like a vampire, slept for thousands of years and just now is my first glimpse of light haha. Link to comment Share on other sites More sharing options...
MisterM 0 Posted January 23, 2019 Share Posted January 23, 2019 On 1/20/2019 at 2:47 PM, pabloignaciod said: RewriteEngine Check if this module is enable on Apache Link to comment Share on other sites More sharing options...
Jeffrey 366 Posted January 24, 2019 Share Posted January 24, 2019 Try: <IfModule mod_rewrite.c> Options -MultiViews RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteRule \.(js|css|jpeg|jpg|gif|png|ico|map)(\?|$) /404error.php [L,NC] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> Support Team - September 9th, 2017 - June 8, 2018 Junior Moderator - December 14th 2018 - November 16th, 2019 Designer - November 16th, 2019 - June 5th, 2020 Moderator - June 5th, 2020 - August 28th, 2020 Link to comment Share on other sites More sharing options...
pabloignaciod 1 Posted January 29, 2019 Author Share Posted January 29, 2019 On 1/20/2019 at 2:44 PM, mr-pimpen said: was it working be you add this RewriteCond %{HTTPS} off [OR] RewriteCond %{HTTP_HOST} !^www\. [NC] RewriteCond %{HTTP_HOST} ^(?:www\.)?(.+)$ [NC] RewriteRule ^ https://www.%1%{REQUEST_URI} [L,NE,R=301] this is what i see on my end and it look ok your site and this is not how i see this https://www.armacls.com/index.php?app=forums&module=forums&controller=index 1 Thanks for your answer! It's because now friendly URLs are disabled https://www.armacls.com/forums/forum/3-centro-de-alistamiento/?id=3 > Should be a Topic. Now redirects to index. When I enable Friendly URLs, that returns a "not found" error On 1/24/2019 at 5:42 AM, Jeffrey said: Try: <IfModule mod_rewrite.c> Options -MultiViews RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteRule \.(js|css|jpeg|jpg|gif|png|ico|map)(\?|$) /404error.php [L,NC] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> Hey! Thanks a lot for your answer, but it did not work. Still the same problem with the URLs. On 1/22/2019 at 10:19 PM, MisterM said: Check if this module is enable on Apache Yes! it's enabled. (Also checked by phpinfo) Link to comment Share on other sites More sharing options...
deduce-fading-venus 1 Posted January 29, 2019 Share Posted January 29, 2019 I guess the htaccess file that your IPS installation provided did not work. I've been having that issue with a hosting service, but not on my selfhosted. Are you doing self-hosted or are you using a hosting service? Link to comment Share on other sites More sharing options...
pabloignaciod 1 Posted January 30, 2019 Author Share Posted January 30, 2019 5 hours ago, Raúl Molina said: I guess the htaccess file that your IPS installation provided did not work. I've been having that issue with a hosting service, but not on my selfhosted. Are you doing self-hosted or are you using a hosting service? Hi Raúl, I'm self-hosting my site using xampp on windows Link to comment Share on other sites More sharing options...
deduce-fading-venus 1 Posted January 30, 2019 Share Posted January 30, 2019 7 hours ago, pabloignaciod said: Hi Raúl, I'm self-hosting my site using xampp on windows Hey, doing the same, self-hosted using XAMPP on Windows, however, the Rewrite module comes enabled by default on Apache, and the htaccess file worked right away, so I do not know how may we fix this. You may want to try reinstalling XAMPP on another hard drive and see if the issue goes away (after ofc moving the old htdocs folder to the new XAMPP install and importing the database back). I'll also add you on Discord because I see you speak Spanish, and so do I. Link to comment Share on other sites More sharing options...
nikolast178 4 Posted April 10, 2019 Share Posted April 10, 2019 After 4.4 I have the same problem Link to comment Share on other sites More sharing options...
mr-pimpen 387 Posted April 10, 2019 Share Posted April 10, 2019 i been reading this topic and has any one check there mod securty if its an abled it would have that effect on notfound i hadd that same issue try to disable your mod securty when I load your site, I was like a vampire, slept for thousands of years and just now is my first glimpse of light haha. Link to comment Share on other sites More sharing options...
pabloignaciod 1 Posted April 10, 2019 Author Share Posted April 10, 2019 This issue was solved by upgrading to 4.4.2 1 Link to comment Share on other sites More sharing options...
Recommended Posts