.htaccess - Htaccess - The requested URL /index.php was not found on this server in flynax -


i new htaccess , flynax, have installed flynax on localhost path localhost/flynax. shows index page content when click on shows error requested url /index.php not found on server. tried somany things shows error. changing rewritebase /flynax, rewritebase http://localhost/flynax/ .. please me . think problem lies in htaccess. following htaccess in flynax folder project main folder

        # configures footer on server-generated documents         serversignature off          # enable apache morrewrite module         rewriteengine on          # url prefix used per-directory         #rewritebase /         rewritebase /           # block bad user agents         rewritecond %{http_user_agent} ^blackwidow [or]         rewritecond %{http_user_agent} ^bot\ mailto:craftbot@yahoo.com [or]         rewritecond %{http_user_agent} ^chinaclaw [or]         rewritecond %{http_user_agent} ^custo [or]         rewritecond %{http_user_agent} ^disco [or]         rewritecond %{http_user_agent} ^download\ demon [or]         rewritecond %{http_user_agent} ^ecatch [or]         rewritecond %{http_user_agent} ^eirgrabber [or]         rewritecond %{http_user_agent} ^emailsiphon [or]         rewritecond %{http_user_agent} ^emailwolf [or]         rewritecond %{http_user_agent} ^express\ webpictures [or]         rewritecond %{http_user_agent} ^extractorpro [or]         rewritecond %{http_user_agent} ^eyenetie [or]         rewritecond %{http_user_agent} ^flashget [or]         rewritecond %{http_user_agent} ^getright [or]         rewritecond %{http_user_agent} ^getweb! [or]         rewritecond %{http_user_agent} ^go!zilla [or]         rewritecond %{http_user_agent} ^go-ahead-got-it [or]         rewritecond %{http_user_agent} ^grabnet [or]         rewritecond %{http_user_agent} ^grafula [or]         rewritecond %{http_user_agent} ^hmview [or]         rewritecond %{http_user_agent} httrack [nc,or]         rewritecond %{http_user_agent} ^image\ stripper [or]         rewritecond %{http_user_agent} ^image\ sucker [or]         rewritecond %{http_user_agent} indy\ library [nc,or]         rewritecond %{http_user_agent} ^interget [or]         rewritecond %{http_user_agent} ^internet\ ninja [or]         rewritecond %{http_user_agent} ^jetcar [or]         rewritecond %{http_user_agent} ^joc\ web\ spider [or]         rewritecond %{http_user_agent} ^larbin [or]         rewritecond %{http_user_agent} ^leechftp [or]         rewritecond %{http_user_agent} ^mass\ downloader [or]         rewritecond %{http_user_agent} ^midown\ tool [or]         rewritecond %{http_user_agent} ^mister\ pix [or]         rewritecond %{http_user_agent} ^navroad [or]         rewritecond %{http_user_agent} ^nearsite [or]         rewritecond %{http_user_agent} ^netants [or]         rewritecond %{http_user_agent} ^netspider [or]         rewritecond %{http_user_agent} ^net\ vampire [or]         rewritecond %{http_user_agent} ^netzip [or]         rewritecond %{http_user_agent} ^octopus [or]         rewritecond %{http_user_agent} ^offline\ explorer [or]         rewritecond %{http_user_agent} ^offline\ navigator [or]         rewritecond %{http_user_agent} ^pagegrabber [or]         rewritecond %{http_user_agent} ^papa\ foto [or]         rewritecond %{http_user_agent} ^pavuk [or]         rewritecond %{http_user_agent} ^pcbrowser [or]         rewritecond %{http_user_agent} ^realdownload [or]         rewritecond %{http_user_agent} ^reget [or]         rewritecond %{http_user_agent} ^sitesnagger [or]         rewritecond %{http_user_agent} ^smartdownload [or]         rewritecond %{http_user_agent} ^superbot [or]         rewritecond %{http_user_agent} ^superhttp [or]         rewritecond %{http_user_agent} ^surfbot [or]         rewritecond %{http_user_agent} ^takeout [or]         rewritecond %{http_user_agent} ^teleport\ pro [or]         rewritecond %{http_user_agent} ^voideye [or]         rewritecond %{http_user_agent} ^web\ image\ collector [or]         rewritecond %{http_user_agent} ^web\ sucker [or]         rewritecond %{http_user_agent} ^webauto [or]         rewritecond %{http_user_agent} ^webcopier [or]         rewritecond %{http_user_agent} ^webfetch [or]         rewritecond %{http_user_agent} ^webgo\ [or]         rewritecond %{http_user_agent} ^webleacher [or]         rewritecond %{http_user_agent} ^webreaper [or]         rewritecond %{http_user_agent} ^websauger [or]         rewritecond %{http_user_agent} ^website\ extractor [or]         rewritecond %{http_user_agent} ^website\ quester [or]         rewritecond %{http_user_agent} ^webstripper [or]         rewritecond %{http_user_agent} ^webwhacker [or]         rewritecond %{http_user_agent} ^webzip [or]         rewritecond %{http_user_agent} ^widow [or]         rewritecond %{http_user_agent} ^wwwoffle [or]         rewritecond %{http_user_agent} ^xaldon\ webspider [or]         rewritecond %{http_user_agent} ^zeus         # note: final rewritecond must not use [or] flag.          # return 403 forbidden error.         #rewriterule .* index.php [f]         rewriterule .* index.php [f]          # following rules bandwidth-hogging download tools         <ifmodule mod_setenvif.c>             setenvif user-agent "libwww-perl" stayout=1             setenvif user-agent "download demon" stayout=1             setenvif user-agent "getright" stayout=1             setenvif user-agent "getweb!" stayout=1             setenvif user-agent "go!zilla" stayout=1             setenvif user-agent "go-ahead-got-it" stayout=1             setenvif user-agent "grabnet" stayout=1             setenvif user-agent "turnitinbot" stayout=1              # line denies access of above tools             deny env=stayout         </ifmodule>          # block possible mysql injections         rewritecond %{request_method} ^(put|connect|head|trace|track) [nc,or]         rewritecond %{the_request} (\\r|\\n|%0a|%0d) [nc,or]         rewritecond %{http_referer} (<|>|'|%0a|%0d|%27|%3c|%3e|%00) [nc,or]         rewritecond %{http_cookie} (<|>|'|%0a|%0d|%27|%3c|%3e|%00) [nc,or]         rewritecond %{request_uri} ^/(,|;|:|<|>|">|"<|/|\\\.\.\\).{0,9999} [nc,or]         rewritecond %{query_string} (;|<|>|'|"|\)|%0a|%0d|%22|%27|%3c|%3e|%00).*(/\*|union|select|insert|cast|set|declare|drop|update|md5|benchmark) [nc,or]         rewritecond %{query_string} (localhost|loopback|127\.0\.0\.1) [nc,or]         rewritecond %{query_string} (<|>|'|%0a|%0d|%27|%3c|%3e|%00) [nc]         # note: final rewritecond must not use [or] flag.          # return 403 forbidden error.         rewriterule .* index.php [f]          # set files headers         <ifmodule mod_headers.c>             <filesmatch "\.(css|js|png|gif|jpg|jpeg|htc)$">                 header set cache-control "max-age=2678400, public, must-revalidate"             </filesmatch>         </ifmodule>          # deflate static content         <ifmodule mod_deflate.c>             addoutputfilterbytype deflate text/text text/html text/plain text/xml text/x-component text/css application/x-javascript application/javascript         </ifmodule>          # allow request methods         <limit post put delete options head>             order deny,allow             allow         </limit>          rewritecond %{request_filename} !-d         rewritecond %{request_filename} !-f          errordocument 404 /404.html          # non .html redirect         #rewritecond %{request_uri} !(\.[a-z]+)$ [nc]         #rewriterule ^([^\/]{3,})/$ http://%{http_host}/$1.html [nc,l,r=301]          # non trailing redirect         #rewritecond %{request_uri} !(\.[a-z]+|[\/]|\?.+)$ [nc]         rewritecond %{request_uri} !(\.[a-z]+|[\/])$ [nc]         rewriterule ^(.*)$ http://%{http_host}/$1/ [nc,l,r=301]          # define system languages         #rewriterule ^([a-za-z]{2})$ index.php?page=$1 [qsa,l]          # define paging         rewriterule ^([^//]+)/?(.*)?/index([0-9]*).html$ index.php?page=$1&rlvareables=$2&pg=$3 [qsa,l]          # define listing         rewriterule ^(([\w\-\_]+)?/)([^/]+)(/.+)-l?([0-9]+).html$ index.php?page=$2&rlvareables=$3$4&listing_id=$5 [qsa,l]          # wildcard request         rewritecond %{request_filename} !-f         rewritecond %{request_filename} !-d [or]         rewritecond %{request_uri} ^\/         rewritecond %{http_host} !^www\.|m\. [nc]         #rewritecond %{http_host} \.{2,} [nc] # 1 localhost usage, 2 glabal usage         rewritecond %{http_host} ^([^\.]+)\..+\.+ [nc]         rewritecond %{http_host} ^([^\.]+) [nc]         rewriterule (.*) index.php?page=%1&wildcard&rlvareables=$1 [qsa,l]          # account request (sub-directory)         rewriterule ^((\w{2})/)?([\w-_]{3,})$ index.php?page=$3&lang=$2&account_request [qsa,l]          # define single pages         rewriterule ^([^//]+)/?(^/*)?.html$ index.php?page=$1 [qsa,l]          # define other pages         rewriterule ^([^//]+)/?(.*)?/?(.*)?(.html|/+)$ index.php?page=$1&rlvareables=$2 [qsa,l]          # google , yahoo sitemap         rewriterule ^([a-z_]*)?sitemap([0-9]*).xml$ plugins/sitemap/sitemap.php?search=google&number=$2&mod=$1 [qsa,l]         rewriterule ^yahoo-sitemap.txt$ /plugins/sitemap/sitemap.php?search=yahoo [qsa,l]         rewriterule ^urllist.txt$ /plugins/sitemap/sitemap.php?search=urllist [qsa,l] 

try change

rewritebase / 

to

rewritebase/flynax/ 

Comments

Popular posts from this blog

magento2 - Magento 2 admin grid add filter to collection -

Android volley - avoid multiple requests of the same kind to the server? -

Combining PHP Registration and Login into one class with multiple functions in one PHP file -