• Home
  • Get help
  • Ask a question
Last post 13 hours 34 min ago
Posts last week 141
Average response time last week 4 hours 42 min
All time posts 67805
All time tickets 10478
All time avg. posts per day 21

Helpdesk is open from Monday through Friday CET

Please create an (free) account to post any question in the support area.
Please check the development versions area. Look at the changelog, maybe your specific problem has been resolved already!
All tickets are private and they cannot be viewed by anyone. We have made public only a few tickets that we found helpful, after removing private information from them.

#8936 – unable to consistently remove index.php on Joomla 4 sites

Posted in ‘SEOInfo and other Weeblr extensions’
This is a public ticket. Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.
Thursday, 28 July 2022 18:30 UTC
lesc

Hello,
I'm not sure if I can receive help for the issue I'm experiencing. The problem is not  related to a Weeblr extension but I thought I'd inquire here with the hope that I may be pointed in the right direction.

I have 2 Joomla 4 sites. On one I've successfully removed "index.php" from URLs. An example is https://j4cms.mwvdev.info/contact-us.html. On another site, https://townofstewiacke.mwvdev.info/index.php, I'm unable to remove "index.php". I would prefer, for example, to have https://townofstewiacke.mwvdev.info/explore.html instead of https://townofstewiacke.mwvdev.info/index.php/explore.html.

On townofstewiacke.mwvdev.info when I set "Use URL Rewriting" to Yes under SEO in the Site tab of Global Configuration I either get a white "Not Found" page or a PHP error message "Sorry, your PHP version is not supported". The error message is dependent on what is in the .htaccess file.

The same setting is set to Yes on j4cms.mwvdev.info without an issue. Both sites are hosted on the same server.

I'd like to mention the same .htaccess file is in the root folder of both sites when there is the PHP error screen for townofstewiacke.mwvdev.info. Is this possibly a server-side issue?

At some point PHP on the server is going to be updated. This may solve the problem. What I'm wondering is why both Joomla 4 sites behave differently.

Can this problem be solved by 4SEF when it becomes available? Just wondering, is 4SEF expected to be released before October 2022?

Thank you,
Les

Friday, 29 July 2022 07:22 UTC
wb_weeblr

Hi Les,

Can this problem be solved by 4SEF when it becomes available?

No, this is a server issue, namely the content of you .htaccess. You have not said what you are adding to your .htaccess in each case but my best advice here is to ask your hosting company. They set up the webserver, they'll know what to add or not to add to the .htaccess. 

The fact results are not the same on different sites is usually explained by the rest of your .htaccess content, which may differ from site to site.

I would recommend backing up your current .htaccess, then copying the Joomla-provided htaccess.txt file to .htaccess. It should work in most cases, and it has a minimal content suitable for most sites.

At some point PHP on the server is going to be updated. This may solve the problem. What I'm wondering is why both Joomla 4 sites behave differently.

PHP is not involved here, even if you get a fancy error message at some point. This would actually point at your .htaccess containing extra rules (maybe required by your hosting), likely causing the problem.

Best regards

Yannick Gaultier

weeblr.com / @weeblr

 

 
Monday, 29 August 2022 05:34 UTC
system
This ticket has been automatically closed. All tickets which have been inactive for a long time are automatically closed. If you believe that this ticket was closed in error, please contact us.
This ticket is closed, therefore read-only. You can no longer reply to it. If you need to provide more information, please open a new ticket and mention this ticket's number.