1.First Look at your error logs folder in server : /wamp/logs/apache_error.log
2. Then look at your configuration file in your joomla folder.
3. Change the htaccess.txt to .htaccess
4. In .htaccess make deny from all to allow from all
5. Remove # from RewriteEngine in .htaccess or RewriteBase
6. Follow directions of following
steps for ubuntu server:
===========================================
1)go to the ubuntu command line
2)type the command: sudo gedit /etc/apache2/sites-available/default
notes: This is the default server configuration file using ubutu server
3) Make 2 changes to the code, see default code below
original: AllowOverride None
new: AllowOverride All
========segment of default code ===================
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
=========code end=======================
4) Save and close gedit
5) type the command: sudo a2enmod rewrite
notes: the ApacheENableModule tool (a2enmod) now enables the "rewrite" module for good. The next time you reboot, the module loads automatically
6) type this command: sudo /etc/init.d/apache2 restart
notes: this restarts the apache2 web server without rebooting your pc
7) test that .htaccess files are being loaded properly by apache
type the command: sudo mkdir /var/www/foofolder
type the command: sudo gedit /var/www/foofolder/.htaccess
in the file add these 2 lines below
Options +FollowSymLinks
Redirect /foofolder/foo.html http://www.google.com
Save and close gedit
Open a browser and test your server URL by adding foofolder/foo.htm
example url: localhost/foofolder/foo.html
result, you should see google
9) Follow the steps for SEF Urls in your docs for your CMS website
SEF = Search Engine Friendly
(the opposite of long URL's with querry strings)
10) For the Joomla CMS you would rename the default file
from: htaccess.txt
to: .htaccess
and set all 3 SEO settings to "yes" in the Joomla back end, global configuration
ubuntu command line: sudo mv /var/www/joomla/htaccess.txt /var/www/joomla/.htaccess
11) Done
Steps for a Wamp Server
===============================
use notepad to edit the file
c:\wamp\bin\apache2.2.11\config\httpd.conf
Your folder may have a different apache version
search for the text "rewrite"
remove the pound symbol # - at the start of that line of text
search for the text "None"
change it to "All" in both places as noted in step 3 above
save and exit notepad
click start, run, cmd.exe
type the commands
c:
cd\
cd wamp
cd www
cd joomla
rename htaccess.txt .htaccess
use the mouse to click the wamp menu stop all, then start all
Another solution:
if ur site in a new folder in www(for eg:wamp->www->sample)
1.change htaccess to .htaccess
2.open htaccess and comment with ‘#’
#Options +FollowSymLinks
3.Un comment RewriteBase /sample
4.Open administrator->global configuration->click on “Yes” on the “Search Engine friendly URLs” line, and push the “Save button”
5.restart all services in wamp server..
this will help for more info visit
http://bodvoc.com/index.php?option=com_content&view=article&id=45:modifying-your-joomla-htaccess-file&catid=2:joomla-security&Itemid=3
===========================================
1)go to the ubuntu command line
2)type the command: sudo gedit /etc/apache2/sites-available/default
notes: This is the default server configuration file using ubutu server
3) Make 2 changes to the code, see default code below
original: AllowOverride None
new: AllowOverride All
========segment of default code ===================
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
=========code end=======================
4) Save and close gedit
5) type the command: sudo a2enmod rewrite
notes: the ApacheENableModule tool (a2enmod) now enables the "rewrite" module for good. The next time you reboot, the module loads automatically
6) type this command: sudo /etc/init.d/apache2 restart
notes: this restarts the apache2 web server without rebooting your pc
7) test that .htaccess files are being loaded properly by apache
type the command: sudo mkdir /var/www/foofolder
type the command: sudo gedit /var/www/foofolder/.htaccess
in the file add these 2 lines below
Options +FollowSymLinks
Redirect /foofolder/foo.html http://www.google.com
Save and close gedit
Open a browser and test your server URL by adding foofolder/foo.htm
example url: localhost/foofolder/foo.html
result, you should see google
9) Follow the steps for SEF Urls in your docs for your CMS website
SEF = Search Engine Friendly
(the opposite of long URL's with querry strings)
10) For the Joomla CMS you would rename the default file
from: htaccess.txt
to: .htaccess
and set all 3 SEO settings to "yes" in the Joomla back end, global configuration
ubuntu command line: sudo mv /var/www/joomla/htaccess.txt /var/www/joomla/.htaccess
11) Done
Steps for a Wamp Server
===============================
use notepad to edit the file
c:\wamp\bin\apache2.2.11\config\httpd.conf
Your folder may have a different apache version
search for the text "rewrite"
remove the pound symbol # - at the start of that line of text
search for the text "None"
change it to "All" in both places as noted in step 3 above
save and exit notepad
click start, run, cmd.exe
type the commands
c:
cd\
cd wamp
cd www
cd joomla
rename htaccess.txt .htaccess
use the mouse to click the wamp menu stop all, then start all
Another solution:
if ur site in a new folder in www(for eg:wamp->www->sample)
1.change htaccess to .htaccess
2.open htaccess and comment with ‘#’
#Options +FollowSymLinks
3.Un comment RewriteBase /sample
4.Open administrator->global configuration->click on “Yes” on the “Search Engine friendly URLs” line, and push the “Save button”
5.restart all services in wamp server..
this will help for more info visit
http://bodvoc.com/index.php?option=com_content&view=article&id=45:modifying-your-joomla-htaccess-file&catid=2:joomla-security&Itemid=3
No comments:
Post a Comment