This is my mainpage.
I've done all of this.
(i) Set the Global Configuration parameter Use Apache mod_rewrite to Yes
(ii) Set the Global Configuration parameter Search Engine Friendly URLs to Yes
(ii) Copy the file htaccess.txt file provided by Joomla! to the file .htaccess and this file should be in the directory where the file configuration.php is located.
(iii) edit the file .htaccess and make sure to uncomment the line # RewriteBase / and the uncommented line would be RewriteBase / (my site is in the main directory)
(iv) set $live_site in configuration.php to my site's URL
But still, whenever I try to go to an article from the main page it loads it inside the front page instead of going to a new one.
I also added RewriteRule (.*)
www.google.com to the .htaccess file and it redirected fine so apache is working.