sinazn
Registered User
با سلام
قبلا يكجا ديده بودم در فايل htaccess يك كدي ميزنند كه ميتونه كليه صفحات ديناميك رو به استاتيك تبديل كنه
كسي اطلاعاتي در اين رابطه داره:
كد و مطلب اصلي اين هست:
Use Apache rewrite engine module to pass the request to the old .php script.
We will create an .htaccess file in the directory /articles/ with this content:
RewriteEngine on
RewriteRule ^/articles/(.+)\.html$ show_article.php?id=$1
Change the all the old website links to reflect the new url style.
As an example, in the file show_article.php, change this instructions:
echo "<a href='http://www.mywebpage.com/articles/show_article.php?id=$code'> Article </a>";
For the following equivalent:
echo "<a href='http://www.mywebpage.com/articles/$code.html'> Article </a>";
This sould be done wherever was a link towards the old url.
اساتيد اگه وقت دارن كمك كنند
ممنون
قبلا يكجا ديده بودم در فايل htaccess يك كدي ميزنند كه ميتونه كليه صفحات ديناميك رو به استاتيك تبديل كنه
كسي اطلاعاتي در اين رابطه داره:
كد و مطلب اصلي اين هست:
Use Apache rewrite engine module to pass the request to the old .php script.
We will create an .htaccess file in the directory /articles/ with this content:
RewriteEngine on
RewriteRule ^/articles/(.+)\.html$ show_article.php?id=$1
Change the all the old website links to reflect the new url style.
As an example, in the file show_article.php, change this instructions:
echo "<a href='http://www.mywebpage.com/articles/show_article.php?id=$code'> Article </a>";
For the following equivalent:
echo "<a href='http://www.mywebpage.com/articles/$code.html'> Article </a>";
This sould be done wherever was a link towards the old url.
اساتيد اگه وقت دارن كمك كنند
ممنون