简体   繁体   中英

Joomla(easy/hard) - homepage working - all other pages give a 404

This is the site

http://tinyurl.com/7zo87mm

can anyone tell me why only the homepage works? all other pages return a 404 error

What worked for me was under global configuration, in the site tab, to the right hand side is an option for "use url rewriting" change that to no and save. My site came right up after that.

It seems something wrong with your .htaccess file. Have you checked?

您是否在.htaccess中定义了RewriteBase?

I would recommend following instructions outlined HERE

Nutshell version: If your Joomla is installed in it's own directory and not root: Open .htaccess in a text editor. Uncomment RewriteBase / (remove the first character, #). If Joomla is installed in its own folder, the enter the Joomla folder name after the backslash. eg RewriteBase /yourjoomlafolder.

Log on to your Back-end and open the Global Configuration. Enable the Search Engine Friendly URLs option and Save.

Enable the Use Apache mod_rewrite/URL rewriting option and Save.

Check if your site works correctly. Your URLs should now look like http://www.example.com/the- news/1-latest-news/1-welcome-to-joomla.

If this option causes errors, please see How to check if mod rewrite is enabled on your server.

If it is not enabled and you have access to the file apache/conf/httpd.conf, open that file and check if the line LoadModule rewrite_module modules/mod_rewrite.so is uncommented. If necessary, uncomment the line and restart the Apache web server.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM