web.config to .htacess

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
0
down vote

favorite












i m migrate the one site from windows server to linux server,



it is working fine but index page only working, other pages not working, i m check this, for url redirect use the web.config this in not working in linux server, any one please convert this and give me





 <rule name="aboutuspage" stopProcessing="true">
<match url="^About-Us/" />
<action type="Rewrite" url="/about-us.php" />
</rule>
<rule name="newseventspage" stopProcessing="true">
<match url="^News-Events/" />
<action type="Rewrite" url="/gallery.php" />
</rule>
<rule name="qualitypage" stopProcessing="true">
<match url="^Quality/" />
<action type="Rewrite" url="/quality.php" />
</rule>
</rules>




please help this any one







share|improve this question
























    up vote
    0
    down vote

    favorite












    i m migrate the one site from windows server to linux server,



    it is working fine but index page only working, other pages not working, i m check this, for url redirect use the web.config this in not working in linux server, any one please convert this and give me





     <rule name="aboutuspage" stopProcessing="true">
    <match url="^About-Us/" />
    <action type="Rewrite" url="/about-us.php" />
    </rule>
    <rule name="newseventspage" stopProcessing="true">
    <match url="^News-Events/" />
    <action type="Rewrite" url="/gallery.php" />
    </rule>
    <rule name="qualitypage" stopProcessing="true">
    <match url="^Quality/" />
    <action type="Rewrite" url="/quality.php" />
    </rule>
    </rules>




    please help this any one







    share|improve this question






















      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      i m migrate the one site from windows server to linux server,



      it is working fine but index page only working, other pages not working, i m check this, for url redirect use the web.config this in not working in linux server, any one please convert this and give me





       <rule name="aboutuspage" stopProcessing="true">
      <match url="^About-Us/" />
      <action type="Rewrite" url="/about-us.php" />
      </rule>
      <rule name="newseventspage" stopProcessing="true">
      <match url="^News-Events/" />
      <action type="Rewrite" url="/gallery.php" />
      </rule>
      <rule name="qualitypage" stopProcessing="true">
      <match url="^Quality/" />
      <action type="Rewrite" url="/quality.php" />
      </rule>
      </rules>




      please help this any one







      share|improve this question












      i m migrate the one site from windows server to linux server,



      it is working fine but index page only working, other pages not working, i m check this, for url redirect use the web.config this in not working in linux server, any one please convert this and give me





       <rule name="aboutuspage" stopProcessing="true">
      <match url="^About-Us/" />
      <action type="Rewrite" url="/about-us.php" />
      </rule>
      <rule name="newseventspage" stopProcessing="true">
      <match url="^News-Events/" />
      <action type="Rewrite" url="/gallery.php" />
      </rule>
      <rule name="qualitypage" stopProcessing="true">
      <match url="^Quality/" />
      <action type="Rewrite" url="/quality.php" />
      </rule>
      </rules>




      please help this any one









      share|improve this question











      share|improve this question




      share|improve this question










      asked Dec 25 '17 at 10:55









      shaik Jilani

      11




      11




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          0
          down vote













          Try using the below htaccess code.



          # Make sure that the rewrite module has been enabled
          <IfModule mod_rewrite.c>
          # Enable the RewriteEngine may be duplicate.
          RewriteEngine on
          # Base of website
          RewriteBase /
          # Check if it is a PHP **file**
          RewriteCond %REQUEST_FILENAME !-d
          RewriteCond %REQUEST_FILENAME.php -f
          #Writing it without .php
          RewriteRule ^(.*)$ $1.php
          </IfModule>


          If this is the solution, please accept my answer and eventually vote it up.






          share|improve this answer




















            Your Answer







            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "106"
            ;
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function()
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled)
            StackExchange.using("snippets", function()
            createEditor();
            );

            else
            createEditor();

            );

            function createEditor()
            StackExchange.prepareEditor(
            heartbeatType: 'answer',
            convertImagesToLinks: false,
            noModals: false,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            bindNavPrevention: true,
            postfix: "",
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );








             

            draft saved


            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f412938%2fweb-config-to-htacess%23new-answer', 'question_page');

            );

            Post as a guest






























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            0
            down vote













            Try using the below htaccess code.



            # Make sure that the rewrite module has been enabled
            <IfModule mod_rewrite.c>
            # Enable the RewriteEngine may be duplicate.
            RewriteEngine on
            # Base of website
            RewriteBase /
            # Check if it is a PHP **file**
            RewriteCond %REQUEST_FILENAME !-d
            RewriteCond %REQUEST_FILENAME.php -f
            #Writing it without .php
            RewriteRule ^(.*)$ $1.php
            </IfModule>


            If this is the solution, please accept my answer and eventually vote it up.






            share|improve this answer
























              up vote
              0
              down vote













              Try using the below htaccess code.



              # Make sure that the rewrite module has been enabled
              <IfModule mod_rewrite.c>
              # Enable the RewriteEngine may be duplicate.
              RewriteEngine on
              # Base of website
              RewriteBase /
              # Check if it is a PHP **file**
              RewriteCond %REQUEST_FILENAME !-d
              RewriteCond %REQUEST_FILENAME.php -f
              #Writing it without .php
              RewriteRule ^(.*)$ $1.php
              </IfModule>


              If this is the solution, please accept my answer and eventually vote it up.






              share|improve this answer






















                up vote
                0
                down vote










                up vote
                0
                down vote









                Try using the below htaccess code.



                # Make sure that the rewrite module has been enabled
                <IfModule mod_rewrite.c>
                # Enable the RewriteEngine may be duplicate.
                RewriteEngine on
                # Base of website
                RewriteBase /
                # Check if it is a PHP **file**
                RewriteCond %REQUEST_FILENAME !-d
                RewriteCond %REQUEST_FILENAME.php -f
                #Writing it without .php
                RewriteRule ^(.*)$ $1.php
                </IfModule>


                If this is the solution, please accept my answer and eventually vote it up.






                share|improve this answer












                Try using the below htaccess code.



                # Make sure that the rewrite module has been enabled
                <IfModule mod_rewrite.c>
                # Enable the RewriteEngine may be duplicate.
                RewriteEngine on
                # Base of website
                RewriteBase /
                # Check if it is a PHP **file**
                RewriteCond %REQUEST_FILENAME !-d
                RewriteCond %REQUEST_FILENAME.php -f
                #Writing it without .php
                RewriteRule ^(.*)$ $1.php
                </IfModule>


                If this is the solution, please accept my answer and eventually vote it up.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Dec 25 '17 at 12:28









                Yvan

                11




                11






















                     

                    draft saved


                    draft discarded


























                     


                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f412938%2fweb-config-to-htacess%23new-answer', 'question_page');

                    );

                    Post as a guest













































































                    Popular posts from this blog

                    Peggy Mitchell

                    Palaiologos

                    The Forum (Inglewood, California)