I modified the “Use Web Server Rewrites” to “Yes” in System->Configuration ->General->Web.
When i click on any product from front end it give 404 error.
Request URL: http://localhost/magento/phone/w900i-sony.html -404 Error
URL : http://localhost/magento/index.php/phone/w900i-sony.html - Shows product.
I think mod_rewirte is not happens here. So i enable the rewrite log(RewriteLog /tmp/rewrite.log) in .htaccess, log file also does not create.
I need to change any modification in .htaccess???
NO.
Without index.php i cant view my site.
Previously it was loaded, because of “DirectoryIndex index.php” configurated in appache httpd.conf.
If i remove from httpd.conf then my website is not loading.
NO.
Without index.php i cant view my site.
Previously it was loaded, because of “DirectoryIndex index.php” configurated in appache httpd.conf.
If i remove from httpd.conf then my website is not loading.
I enabled the url rewriting in admin->system ->configuration like it is said before in this post, and I also changed my .htaccess.
I am running my website on 1and1 server.
I hope this will help somone.
This is what my htaccess file looks like and it works for me:
You can try and copy and paste all of it, see if that also works for you (do backup your file before, just in case this does not work for you).
############################################ ## uncomment these lines for CGI mode ## make sure to specify the correct cgi php binary file name ## it might be /cgi-bin/php-cgi
############################################ ## disable magic quotes for php request vars
php_flag magic_quotes_gpc off
############################################ ## disable automatic session start ## before autoload was initialized
php_flag session.auto_start off
############################################ ## enable resulting html compression
#php_flag zlib.output_compression on
########################################### # disable user agent verification to not break multiple image upload
php_flag suhosin.session.cryptua off
########################################### # turn off compatibility with PHP4 when dealing with objects
php_flag zend.ze1_compatibility_mode Off
</IfModule>
<IfModule mod_security.c> ########################################### # disable POST processing to not break multiple image upload
SecFilterEngine Off SecFilterScanPOST Off </IfModule>
<IfModule mod_deflate.c>
############################################ ## enable apache served files compression ## http://developer.yahoo.com/performance/rules.html#gzip
# Insert filter #SetOutputFilter DEFLATE
# Netscape 4.x has some problems... #BrowserMatch ^Mozilla/4 gzip-only-text/html
# Netscape 4.06-4.08 have some more problems #BrowserMatch ^Mozilla/4\.0[678] no-gzip
# MSIE masquerades as Netscape, but it is fine #BrowserMatch \bMSIE !no-gzip !gzip-only-text/html # Don't compress images #SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png)$ no-gzip dont-vary
# Make sure proxies don't deliver the wrong content #Header append Vary User-Agent env=!dont-vary
</IfModule>
<IfModule mod_ssl.c>
############################################ ## make HTTPS env vars available for CGI mode
############################################ ## rewrite everything else to index.php
RewriteRule . /index.php [L]
</IfModule>
############################################ ## Prevent character encoding issues from server overrides ## If you still have problems, use the second line instead
############################################ ## By default allow all access
Order allow,deny Allow from all
############################################ ## If running in cluster environment, uncomment this ## http://developer.yahoo.com/performance/rules.html#etags