index.php coming two times in magento url? -
i using magento v1.8.0.1. problem index.php coming 2 times in magento url like
http://103.16.130.92/index.php/index.php/admin/system_config/index/key/28a1cf7ee3eaa30083d383d0f70c7753/
i wanted remove index.php url follow link
http://stackoverflow.com/questions/16938860/how-do-i-remove-index-php-from-the-url-in-magento
but problem is not working , showing 404 error. searched stuffs unable remove index.php url. code .htaccrss file is
############################################ ## uncomment these lines cgi mode ## make sure specify correct cgi php binary file name ## might /cgi-bin/php-cgi # action php5-cgi /cgi-bin/php5-cgi # addhandler php5-cgi .php ############################################ ## godaddy specific options # options -multiviews ## might need add line php.ini ## cgi.fix_pathinfo = 1 ## if still doesn't work, rename php.ini php5.ini ############################################ ## line specific 1and1 hosting #addtype x-mapp-php5 .php #addhandler x-mapp-php5 .php ############################################ ## default index file directoryindex index.php <ifmodule mod_php5.c> ############################################ ## adjust memory limit # php_value memory_limit 64m php_value memory_limit 256m php_value max_execution_time 18000 ############################################ ## disable magic quotes php request vars php_flag magic_quotes_gpc off ############################################ ## disable automatic session start ## before autoload initialized php_flag session.auto_start off ############################################ ## enable resulting html compression php_flag zlib.output_compression on ########################################### # disable user agent verification not break multiple image upload php_flag suhosin.session.cryptua off ########################################### # turn off compatibility php4 when dealing objects php_flag zend.ze1_compatibility_mode off </ifmodule> <ifmodule mod_security.c> ########################################### # disable post processing 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 on content ###setoutputfilter deflate # insert filter on selected content types #addoutputfilterbytype deflate text/html text/plain text/xml text/css text/javascript # netscape 4.x has problems... #browsermatch ^mozilla/4 gzip-only-text/html # netscape 4.06-4.08 have more problems #browsermatch ^mozilla/4\.0[678] no-gzip # msie masquerades netscape, 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 wrong content #header append vary user-agent env=!dont-vary </ifmodule> <ifmodule mod_ssl.c> ############################################ ## make https env vars available cgi mode ssloptions stdenvvars </ifmodule> <ifmodule mod_rewrite.c> ############################################ ## enable rewrites options +followsymlinks rewriteengine on ############################################ ## can put here magento root folder ## path relative web root # rewritebase /magento/ ############################################ ## uncomment next line enable light api calls processing # rewriterule ^api/([a-z][0-9a-z_]+)/?$ api.php?type=$1 [qsa,l] ############################################ ## rewrite api2 calls api.php (by rest only) rewriterule ^api/rest api.php?type=rest [qsa,l] ############################################ ## workaround http authorization ## in cgi environment rewriterule .* - [e=http_authorization:%{http:authorization}] ############################################ ## trace , track http methods disabled prevent xss attacks rewritecond %{request_method} ^trac[ek] rewriterule .* - [l,r=405] ############################################ ## redirect mobile user agents #rewritecond %{request_uri} !^/mobiledirectoryhere/.*$ #rewritecond %{http_user_agent} "android|blackberry|ipad|iphone|ipod|iemobile|opera mobile|palmos|webos|googlebot-mobile" [nc] #rewriterule ^(.*)$ /mobiledirectoryhere/ [l,r=302] ############################################ ## send 404 on missing files in these folders rewritecond %{request_uri} !^/(media|skin|js)/ ############################################ ## never rewrite existing files, directories , links rewritecond %{request_filename} !-f rewritecond %{request_filename} !-d rewritecond %{request_filename} !-l ############################################ ## rewrite else index.php rewriterule .* index.php [l] </ifmodule> ############################################ ## prevent character encoding issues server overrides ## if still have problems, use second line instead adddefaultcharset off #adddefaultcharset utf-8 ## expires caching ## <ifmodule mod_expires.c> expiresactive on expiresbytype image/jpg "access plus 1 year" expiresbytype image/jpeg "access plus 1 year" expiresbytype image/gif "access plus 1 year" expiresbytype image/png "access plus 1 year" expiresbytype text/css "access plus 1 month" expiresbytype application/pdf "access plus 1 month" expiresbytype text/x-javascript "access plus 1 month" expiresbytype application/x-shockwave-flash "access plus 1 month" expiresbytype image/x-icon "access plus 1 year" expiresdefault "access plus 2 days" </ifmodule> ## expires caching ## ############################################ ## default allow access order allow,deny allow ########################################### ## deny access release notes prevent disclosure of installed magento version <files release_notes.txt> order allow,deny deny </files> ############################################ ## if running in cluster environment, uncomment ## http://developer.yahoo.com/performance/rules.html#etags #fileetag none <ifmodule mod_headers.c> # turn on expires , set default expires 3 days expiresactive on expiresdefault a259200 # set caching on media files 1 month <filesmatch ".(ico|gif|jpg|jpeg|png|flv|pdf|swf|mov|mp3|wmv|ppt)$"> expiresdefault a2419200 header append cache-control "public" </filesmatch> # set 2 hour caching on commonly updated files <filesmatch ".(xml|txt|html|js|css)$"> expiresdefault a7200 header append cache-control "private, must-revalidate" </filesmatch> # force no caching dynamic files <filesmatch ".(php|cgi|pl|htm)$"> expiresdefault a0 header set cache-control "no-store, no-cache, must-revalidate, max-age=0" header set pragma "no-cache" </filesmatch> </ifmodule> <ifmodule mod_headers.c> # year <filesmatch "\.(ico|gif|jpg|jpeg|png|flv|pdf)$"> header set cache-control "max-age=29030400" </filesmatch> # week <filesmatch "\.(js|css|swf)$"> header set cache-control "max-age=604800" </filesmatch> # 45 min <filesmatch "\.(html|htm|txt)$"> header set cache-control "max-age=86400" </filesmatch> </ifmodule> <ifmodule mod_gzip.c> mod_gzip_on yes mod_gzip_dechunk yes mod_gzip_item_include file \.(html?|txt|css|js|php|pl|asp|html)$ mod_gzip_item_include handler ^cgi-script$ mod_gzip_item_include mime ^text/.* mod_gzip_item_include mime ^application/x-javascript.* mod_gzip_item_exclude mime ^image/.* mod_gzip_item_exclude rspheader ^content-encoding:.*gzip.* </ifmodule> <ifmodule mod_deflate.c> addoutputfilterbytype deflate text/text text/html text/plain text/xml text/css application/x-javascript application/javascript </ifmodule> ############################################ ## compress text, html, javascript, css, xml: addoutputfilterbytype deflate text/plain addoutputfilterbytype deflate text/html addoutputfilterbytype deflate text/xml addoutputfilterbytype deflate text/css addoutputfilterbytype deflate application/xml addoutputfilterbytype deflate application/xhtml+xml addoutputfilterbytype deflate application/rss+xml addoutputfilterbytype deflate application/javascript addoutputfilterbytype deflate application/x-javascript # or, compress file types extension: <files *.html> setoutputfilter deflate </files> ###########################################
if knows this, please me out. thanks!
open phpmyadmin or whichever database tool have available site , enter query:
select * `core_config_data` `path` 'web%url';
make sure none of returned values end "index.php" because shouldn't there. healthy result should like:
+-----------+---------+----------+-----------------------------+-----------------------------+ | config_id | scope | scope_id | path | value | +-----------+---------+----------+-----------------------------+-----------------------------+ | 6 | default | 0 | web/unsecure/base_url | http://www.example.com/ | | 7 | default | 0 | web/secure/base_url | http://www.example.com/ | | 15 | default | 0 | web/unsecure/base_link_url | {{unsecure_base_url}} | | 16 | default | 0 | web/unsecure/base_skin_url | {{unsecure_base_url}}skin/ | | 17 | default | 0 | web/unsecure/base_media_url | {{unsecure_base_url}}media/ | | 18 | default | 0 | web/unsecure/base_js_url | {{unsecure_base_url}}js/ | | 19 | default | 0 | web/secure/base_link_url | {{secure_base_url}} | | 20 | default | 0 | web/secure/base_skin_url | {{secure_base_url}}skin/ | | 21 | default | 0 | web/secure/base_media_url | {{secure_base_url}}media/ | | 22 | default | 0 | web/secure/base_js_url | {{secure_base_url}}js/ | +-----------+---------+----------+-----------------------------+-----------------------------+
if had adjust rows clear cache deleting var/cache/*
in web folder.
Comments
Post a Comment