Note that there are some explanatory texts on larger screens.

plurals
  1. POAccess to new php files
    primarykey
    data
    text
    <p>I was helping a friend with a website and I created few php pages that he then copied to the root. The problem is that the htaccess file is setup in a way that I'm not able to access any of the new php files that I created but I can access all the html files. I looked into a lot of documentation for editing htaccess but I couldn't make it work. Any help is appreciated. The new pages that I have added are contact.php, show-captcha.php and thank-you.php</p> <pre><code>RewriteEngine on RewriteRule ^(.*)\.htm$ $1.php [NC] #RewriteCond %{REMOTE_ADDR} !71\.239\.5\.36 #RewriteCond %{REQUEST_URI} !/maintenance.html$ #RewriteCond %{REQUEST_URI} !/img(.*)$ #RewriteCond %{REQUEST_URI} !/sync/$ #RewriteRule $ /maintenance.html [R=302,L] ##Errors## ErrorDocument 400 /error.php ErrorDocument 401 /error.php ErrorDocument 403 /error.php ErrorDocument 404 /error.php ErrorDocument 500 /error.php ##Redirect## RewriteCond %{HTTP_HOST} ^www.example.net [NC] RewriteRule ^(.*)$ http://example.net/$1 [L,R=301] RewriteCond %{SERVER_PORT} 80 RewriteCond %{REQUEST_URI} !/$ RewriteRule ^(.*)$ https://example.net/$1 [R,L] ##Common Files## RewriteRule ^(.*)\~\57(.*)$ $1Main.php?file=$2 [NC] RewriteRule ^(.*)ajax\57(.*)$ $1Main.php?ajax&amp;$2 [NC] RewriteRule ^(.*)sync\57(.*)$ $1Main.php?sync&amp;$2 [NC] RewriteRule ^(.*)backup\57(.*)$ $1Main.php?backup&amp;$2 [NC] RewriteRule ^(.*)SampleDoc(\57)(.*[^\57])(\57?)$ $1index.php?count=$3 [NC] ##REDIRECTS## RewriteRule ^(.*)menu(\57)(.*[^\57])(\57)(.*[^\57])$ $1menu.php [NC] RewriteRule ^(.*)menu(\57)(.*[^\57])(\57?)$ $1menu.php [NC] RewriteRule ^(.*)menu(\57?)$ $1menu.php [NC] RewriteRule ^(.*)checkout(\57)(.*[^\57])(\57)(.*[^\57])$ $1checkout.php [NC] RewriteRule ^(.*)checkout(\57)(.*[^\57])(\57?)$ $1checkout.php [NC] RewriteRule ^(.*)checkout(\57?)$ $1checkout.php [NC] RewriteRule ^(.*)ThankYou(\57)(.*[^\57])(\57?)$ $1ThankYou.php?$3 [NC] RewriteRule ^(.*)ThankYou(\57?)$ $1ThankYou.php [NC] RewriteRule ^(.*)Contact(\57)(.*[^\57])(\57?)$ $1contact.php?$3 [NC] RewriteRule ^(.*)Contact(\57?)$ $1contact.php [NC] RewriteRule ^(.*)account(\57)(.*[^\57])(\57)(.*[^\57])(\57)(.*[^\57])$ $1account.php?type=$3&amp;email=$5&amp;code=$7 [NC] RewriteRule ^(.*)account(\57)(.*[^\57])(\57?)$ $1account.php?type=$3 [NC] RewriteRule ^(.*)account(\57?)$ $1account.php [NC] RewriteRule ^(.*)catering(\57)(.*[^\57])(\57)(.*[^\57])$ $1catering.php?$3$5 [NC] RewriteRule ^(.*)catering(\57)(.*[^\57])(\57?)$ $1catering.php?$3 [NC] RewriteRule ^(.*)catering(\57?)$ $1catering.php [NC] RewriteRule ^(.*)changepassword\57(.*[^\57])\57(.*[^\57])$ $1account.php?type=changepssd&amp;email=$2&amp;code=$3 [NC] RewriteRule ^(.*)join(\57)(.*[^\57])(\57)(.*[^\57])$ $1account.php?type=join&amp;email=$5&amp;code=$7 [NC] </code></pre> <p>I tried to add contact.php but you can see it's not helping.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload