mercredi 3 mars 2021

Rewrite Module in Linux with

using pi 3 for apache server but I can't figure out how to setup .htacess as previously I use IIS which is totally easy to complete seo friendly tag.

But Linux HTAACESS is very much different I still can't able to figure out.

First I create .htaccess on root folder which

RewriteRule ^post/article\.php$    {C:1}/{C:2}/{C:3}/{C:4}
RewriteRule ^([^/]+)/([^/]+)/([^/]+)/([^/]+)/?$    post/article.php?a=$1&b=$2&c=$3&id=$4
RewriteRule ^sitemap\.xml?$    sitemap.php

But nothing

Did I have to change with the configuration on the virtual directory

<VirtualHost *:80>
    Documentroot /------
    ServerName intaxing.in
    ServerAlias www.intaxing.in
RewriteEngine On
RewriteRule ^post/article\.php$    {C:1}/{C:2}/{C:3}/{C:4}
RewriteRule ^([^/]+)/([^/]+)/([^/]+)/([^/]+)/?$    post/article.php?a=$1&b=$2&c=$3&id=$4
RewriteRule ^sitemap\.xml?$    sitemap.php
</VirtualHost>

If anyone able to suggest how can I put rewrite so it actually works. I am very thankful to him.




Aucun commentaire:

Enregistrer un commentaire