Links don't work on new server
Posted
by
Beko
on Pro Webmasters
See other posts from Pro Webmasters
or by Beko
Published on 2012-04-13T20:01:29Z
Indexed on
2012/04/13
23:45 UTC
Read the original article
Hit count: 189
htaccess
I've recently moved from server with php4 to php5. Now I cant open content in my page. Links look like this "page.com/news-it-is-rainy-day-1.html". But when I try to open link I just get the archive (news.html). I also use smarty template engine.
My rewrite rule in .htacces looks like this:
Options +FollowSymlinks
RewriteEngine on
RewriteRule ^news-(.*)\.html$ news.php?do=read&id=$1
RewriteRule ^news.html$ news.php
RewriteRule ^index.html$ index.php
AddType application/x-httpd-php .xml
© Pro Webmasters or respective owner