Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Server upgrade - Rewrite problems with index pages

Quote Reply
Server upgrade - Rewrite problems with index pages
I use rewrite rules to display all my pages dynamically and don't physically build any Detailed pages ( see this thread from 2010) and Andy did some custom work for me.

My host has just upgraded their server (to cloud) and now my index pages are static unless I add the index file name.

mysite.com/ = static
mysite.com/index.php = dynamic

mysite.com/category1/ = static
mysite.com/category1/index.php = dynamic
mysite.com/category1/page2.php = dynamic

This is the same with any index page in any directory.

Do I need to add something to the htaccess file to get these do display as dynamic or is this something that I need to flag up with my host as it was working fine before the transfer?

Current htaccess file:
Code:
RewriteEngine on

# ANDY NEW!
RewriteCond %{REQUEST_FILENAME} !phpinfo\.php$
RewriteCond %{REQUEST_URI} !xyz
RewriteRule ^(.*)_([0-9]+).php$ /cgi-bin/links/page.cgi?g=Detailed/$2.php;extra=$1;c=$3 [L]

RewriteCond %{REQUEST_FILENAME} !phpinfo\.php$
RewriteCond %{REQUEST_URI} !xyz
RewriteRule ^(.*)_([0-9]+).php$ /cgi-bin/links/page.cgi?g=$1.php;extra=$1;b=1 [L]
# END ANDY CODES

RewriteCond %{REQUEST_FILENAME} !phpinfo\.php$
RewriteCond %{REQUEST_URI} !xyz
RewriteRule ^(.*).php /cgi-bin/links/page.cgi?g=$1.php [L]

RewriteCond %{REQUEST_FILENAME} !phpinfo\.php$
RewriteCond %{REQUEST_URI} !xyz
RewriteRule New/(.*)$ /cgi-bin/links/page.cgi?g=New/$1 [L]

RewriteCond %{REQUEST_FILENAME} !phpinfo\.php$
RewriteCond %{REQUEST_URI} !xyz
RewriteRule Ratings/(.*)$ /cgi-bin/links/page.cgi?g=Ratings/$1 [L]

RewriteCond %{REQUEST_FILENAME} !phpinfo\.php$
RewriteCond %{REQUEST_URI} !xyz
RewriteRule Cool/(.*)$ /cgi-bin/links/page.cgi?g=Cool/$1 [L]

RewriteCond %{HTTP_HOST} ^mysite.com$ [OR]
RewriteCond %{HTTP_HOST} ^mysite.net$ [OR]
RewriteCond %{HTTP_HOST} ^www.mysite.net$ [OR]
RewriteCond %{HTTP_HOST} ^mysite.org$ [OR]
RewriteCond %{HTTP_HOST} ^www.mysite.org$
RewriteRule ^(.*)$ http://www.mysite.com/$1 [R=301,L]

Last edited by:

MJB: Oct 14, 2013, 3:31 PM
Subject Author Views Date
Thread Server upgrade - Rewrite problems with index pages MJB 22725 Oct 14, 2013, 3:15 PM
Thread Re: [MJB] Server upgrade - Rewrite problems with index pages
Andy 21954 Oct 14, 2013, 11:39 PM
Thread Re: [Andy] Server upgrade - Rewrite problems with index pages
MJB 21844 Oct 15, 2013, 2:52 AM
Thread Re: [MJB] Server upgrade - Rewrite problems with index pages
Andy 21830 Oct 15, 2013, 3:45 AM
Thread Re: [Andy] Server upgrade - Rewrite problems with index pages
MJB 21715 Oct 15, 2013, 9:06 AM
Thread Re: [MJB] Server upgrade - Rewrite problems with index pages
Andy 21715 Oct 15, 2013, 9:13 AM
Thread Re: [Andy] Server upgrade - Rewrite problems with index pages
MJB 21689 Oct 15, 2013, 9:40 AM
Thread Re: [MJB] Server upgrade - Rewrite problems with index pages
Andy 21713 Oct 15, 2013, 9:52 AM
Thread Re: [Andy] Server upgrade - Rewrite problems with index pages
MJB 21696 Oct 15, 2013, 11:01 AM
Thread Re: [MJB] Server upgrade - Rewrite problems with index pages
Andy 21672 Oct 15, 2013, 11:40 AM
Post Re: [Andy] Server upgrade - Rewrite problems with index pages
MJB 21591 Oct 15, 2013, 2:25 PM
Thread Re: [MJB] Server upgrade - Rewrite problems with index pages
brewt 21570 Oct 15, 2013, 3:00 PM
Thread Re: [brewt] Server upgrade - Rewrite problems with index pages
MJB 21282 Oct 16, 2013, 7:08 AM
Thread Re: [MJB] Server upgrade - Rewrite problems with index pages
Andy 21229 Oct 16, 2013, 7:34 AM
Thread Re: [Andy] Server upgrade - Rewrite problems with index pages
MJB 21274 Oct 16, 2013, 7:56 AM
Thread Re: [MJB] Server upgrade - Rewrite problems with index pages
Andy 21265 Oct 16, 2013, 7:58 AM
Thread Re: [Andy] Server upgrade - Rewrite problems with index pages
MJB 21172 Oct 16, 2013, 9:33 AM
Thread Re: [MJB] Server upgrade - Rewrite problems with index pages
Andy 20817 Oct 17, 2013, 1:14 AM
Post Re: [Andy] Server upgrade - Rewrite problems with index pages
MJB 20597 Oct 17, 2013, 9:30 AM