Mobile app version of vmapp.org
Login or Join
Debbie626

: Links don't work on new server 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

@Debbie626

Posted in: #301Redirect #Apache #Htaccess #Php #Redirects

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) which should be only seen if there are no news in the database. 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=
RewriteRule ^news.html$ news.php

RewriteRule ^index.html$ index.php

AddType application/x-httpd-php .xml

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Debbie626

1 Comments

Sorted by latest first Latest Oldest Best

 

@Smith883

Is mod_rewrite enabled in apache in the new server? If not, it will ignore your RewriteEngine on in the .htaccess file

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme