Mobile app version of vmapp.org
Login or Join
Kevin317

: Problem with .htaccess and mod_rewrite after moving site to new server The site seems to draw the correct links but its not redirecting me to the correct view. The same code works fine on

@Kevin317

Posted in: #Apache #Htaccess #Php #UrlRewriting

The site seems to draw the correct links but its not redirecting me to the correct view.

The same code works fine on the old server here ruse.systemio.net/q&a/. The new server is here www.rusereplays.com/q&a/
The problem I'm having is if you click a link on that page to a question it rewrites the link and redirects to the site, but for the new server it seems to just redirect to index.php.

This is my .htaccess I'm using on both servers

<IfModule mod_rewrite.c>

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php/ [QSA,L]
</IfModule>

ErrorDocument 404 /index.php


This is the phpinfo for the two servers


old -> ruse.systemio.net/scripts/phpinfo.php new -> www.rusereplays.com/scripts/phpinfo.php

Anyone having a suggestion on how to fix this or too help me find a solution to my problem?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Kevin317

1 Comments

Sorted by latest first Latest Oldest Best

 

@Cody1181609

Is AllowOverride All set in your httpd.conf?

(If not, your mod_rewrite directives will be ignored unless they are specified under a Directory section in the httpd.conf file or your site's conf file)

See the Apache Core documentation - you'll want to make sure that AllowOverride and AccessFileName match your old server's setup.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme