vendredi 6 mai 2016

Converting .htaccess to web.config for Running the code on Plesk Panel. Is it because of .htaccess , I am not able to run the code?

I have purchased a code from some website for having a social networking app on android. The server part of this app needs to be installed on the backend. After constant conversations with the developer , I was able to conclude that the .htaccess file is not able to process the commands because I am a Plesk Panel user and not a Cpanel User. The Service provider asked me to put the "web.config" Instead of ".htaccess" to perform the task. But I don't have any idea of how to convert/translate the code for this task. here is the code that needs to be converted into web.config format.

    #SetEnv APPLICATION_ENV development

DirectoryIndex /public/index.php
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -f
RewriteRule ^(.+) $1 [L]
RewriteCond %{DOCUMENT_ROOT}/public%{REQUEST_URI} -f
RewriteRule ^(.+) /public/$1 [L]

Options +FollowSymLinks
RewriteEngine on 



RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule ^(.*)$ /public/index.php?q=$1 [L,QSA]

#RewriteRule !\.(js|ico|gif|jpg|png|css|xml|xslt)$ /public/index.php

PS : The mod_rewrite is enabled




Aucun commentaire:

Enregistrer un commentaire