php - The requested URL was not found on this server. .htaccess (MAMP) -
i know there lot of questions similar asked in past, have looked through of them , none of them same this.
i have been developing magento site on mamp. made several backups of files , database. moved site live server, worked. have moved site mamp more development. home page works rest of site gives 'not found. requested url not found on server' error.
i tested see if database worked 1 of backups files (which had been saved before moving live server), , did, suggests problem files have moved on live server.
i read numerous people mention editing .htaccess file, decided have look. found .htaccess file files work open in terminal window. , .htaccess file files moved live server , don"t work open in text editor file. there 1 line of code in file is: #addhandler application/x-httpd-php54 .php
i not know line of code means, have idea of might of happened. after moved site live server, asked hosts update php. (this silly thing have no knowledge of how php works, did because received message in magento backend telling me new php available, thought needed update keep site secure. rookie still). hosts updated , live site stopped working. asked them change original php had , did. there still problem. did not know how fix problem @ first informed me had fixed following solution in link request exceeded limit of 10 internal redirects due probable configuration error , involves adding .htaccess file root directory of live server (/home/caprac5/public_html/.htaccess) , adding following code:
<ifmodule mod_rewrite.c> rewriteengine on rewritebase / rewritecond %{request_filename} !-d rewritecond %{request_filename} !-f rewriterule ^(.*)$ index.php?url=$1 [qsa,l] </ifmodule> to me seems hosts have added .htaccess file root directory of live server allowed site work, have moved website mamp no longer has .htaccess file make work. not know if should try adding .htaccess file root directory of mamp, or if knows how possibly fix .htaccess file in actual website folder.
i hope people able follow saying. if not please leave comment , try explain better.
thanks
first of all, local files in application/mamp/htdocs subdirectory ? required local server find files.
explanation .htaccess :
line have in .htaccess commented (starts #)
code hosts added enables use of .htaccess files.
commands tells server use application/x-httpd-php54 program interpret /php files. 5.4 last version of php , assume there several php interpreters on remote server why need precise it.
if files in correct directory, httpd-php file on computer , add addhandler application/x-httpd-phpxx .htaccess xx numbers local httpd-php (it possible there no numbers)
Comments
Post a Comment