can not enable URL Rewriting Topic is solved

Need help installing Joomla! 3.x? For all Joomla! 3.x installation issues please use this forum.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Post Reply
richardkogyi
Joomla! Apprentice
Joomla! Apprentice
Posts: 15
Joined: Sat May 08, 2010 3:35 am

can not enable URL Rewriting

Post by richardkogyi » Sun May 19, 2019 11:13 am

Hi

I create a VPS with centos 7.6.1810 LAMP.

I download and install joomla 3.9.6 in /var/www/html.
I can successful install.
I rename htaccess.txt to .htaccess and switch on "Use URL Rewriting".
But after rewriting, 404 not found on pages except home page.
Home page is OK.

So please how to configure in .htaccess and /etc/httpd/conf/httpd.conf.

User avatar
Per Yngve Berg
Joomla! Master
Joomla! Master
Posts: 25971
Joined: Mon Oct 27, 2008 9:27 pm
Location: Akershus, Norway

Re: can not enable URL Rewriting

Post by Per Yngve Berg » Sun May 19, 2019 11:20 am

Is mod_rewrite loaded in Apache?

viewtopic.php?f=806&t=969442 Please.

richardkogyi
Joomla! Apprentice
Joomla! Apprentice
Posts: 15
Joined: Sat May 08, 2010 3:35 am

Re: can not enable URL Rewriting

Post by richardkogyi » Sun May 19, 2019 12:32 pm

yes. mod_rewrite is loaded in Apache.
I test as the following post.
https://www.digitalocean.com/community/ ... n-centos-7


mod_rewrite is enable but following rewrite rule do not work. :(

RewriteEngine On
RewriteRule ^about$ about.html [NC]

User avatar
toivo
Joomla! Master
Joomla! Master
Posts: 11228
Joined: Thu Feb 15, 2007 5:48 am
Location: Suzhou, China

Re: can not enable URL Rewriting

Post by toivo » Sun May 19, 2019 4:01 pm

If you want the URLs to end in '.html', there is no need to add a new rewrite rule. Set the option 'Add Suffix to URL' in Global Configuration - Site - SEO Settings.
Toivo Talikka, Global Moderator

richardkogyi
Joomla! Apprentice
Joomla! Apprentice
Posts: 15
Joined: Sat May 08, 2010 3:35 am

Re: can not enable URL Rewriting

Post by richardkogyi » Sun May 19, 2019 4:04 pm

@toivo

I want to disappear index.php in my url.

User avatar
toivo
Joomla! Master
Joomla! Master
Posts: 11228
Joined: Thu Feb 15, 2007 5:48 am
Location: Suzhou, China

Re: can not enable URL Rewriting

Post by toivo » Sun May 19, 2019 4:12 pm

Toivo Talikka, Global Moderator

richardkogyi
Joomla! Apprentice
Joomla! Apprentice
Posts: 15
Joined: Sat May 08, 2010 3:35 am

Re: can not enable URL Rewriting

Post by richardkogyi » Sun May 19, 2019 4:18 pm

Thanks. I did it. But do not work.

User avatar
toivo
Joomla! Master
Joomla! Master
Posts: 11228
Joined: Thu Feb 15, 2007 5:48 am
Location: Suzhou, China

Re: can not enable URL Rewriting

Post by toivo » Sun May 19, 2019 4:28 pm

Please post the results of the Forum Post Assistant (FPA), as requested earlier, by following the instructions from viewtopic.php?f=806&t=969442.
Toivo Talikka, Global Moderator

richardkogyi
Joomla! Apprentice
Joomla! Apprentice
Posts: 15
Joined: Sat May 08, 2010 3:35 am

Re: can not enable URL Rewriting

Post by richardkogyi » Sun May 19, 2019 5:41 pm

I get url rewrite now.
I reinstall my VPS centos with LAMP php7.1.

My old vps is LAMP with php4.6.
Thanks.

User avatar
AMurray
Joomla! Virtuoso
Joomla! Virtuoso
Posts: 4883
Joined: Sat Feb 13, 2010 7:35 am
Location: Australia

Re: can not enable URL Rewriting

Post by AMurray » Tue Jun 11, 2019 9:51 am

richardkogyi wrote: My old vps is LAMP with php4.6.
Joomla 3 won't even run on PHP 4.6 ....??? I could assume you actually meant PHP 5.6 (which by the way is obsolete as of December 2018).
Regards,
--------------------------------------------------------------
A Murray
Millennium Falcon - it's the ship that made the Kessel run in less than 12 parsecs! The fastest hunk of junk in the galaxy.


Post Reply

Return to “Installation Joomla! 3.x”