web.config to .htacess

Clash 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
linux
add a comment |Â
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
linux
add a comment |Â
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
linux
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
linux
asked Dec 25 '17 at 10:55
shaik Jilani
11
11
add a comment |Â
add a comment |Â
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.
add a comment |Â
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.
add a comment |Â
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.
add a comment |Â
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.
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.
answered Dec 25 '17 at 12:28
Yvan
11
11
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password