Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Re: [MJB] Server upgrade - Rewrite problems with index pages

Quote Reply
Re: [MJB] Server upgrade - Rewrite problems with index pages In reply to
Hi,

Yeah, like so:

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]

RewriteRule ^/?$ http://www.mysite.com/$1 [R=301,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]

Not sure what your host is on about (unless they are getting at the same thing as me, with the rule above in red)

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Subject Author Views Date
Thread Server upgrade - Rewrite problems with index pages MJB 23253 Oct 14, 2013, 3:15 PM
Thread Re: [MJB] Server upgrade - Rewrite problems with index pages
Andy 22473 Oct 14, 2013, 11:39 PM
Thread Re: [Andy] Server upgrade - Rewrite problems with index pages
MJB 22362 Oct 15, 2013, 2:52 AM
Thread Re: [MJB] Server upgrade - Rewrite problems with index pages
Andy 22349 Oct 15, 2013, 3:45 AM
Thread Re: [Andy] Server upgrade - Rewrite problems with index pages
MJB 22235 Oct 15, 2013, 9:06 AM
Thread Re: [MJB] Server upgrade - Rewrite problems with index pages
Andy 22233 Oct 15, 2013, 9:13 AM
Thread Re: [Andy] Server upgrade - Rewrite problems with index pages
MJB 22209 Oct 15, 2013, 9:40 AM
Thread Re: [MJB] Server upgrade - Rewrite problems with index pages
Andy 22234 Oct 15, 2013, 9:52 AM
Thread Re: [Andy] Server upgrade - Rewrite problems with index pages
MJB 22216 Oct 15, 2013, 11:01 AM
Thread Re: [MJB] Server upgrade - Rewrite problems with index pages
Andy 22193 Oct 15, 2013, 11:40 AM
Post Re: [Andy] Server upgrade - Rewrite problems with index pages
MJB 22110 Oct 15, 2013, 2:25 PM
Thread Re: [MJB] Server upgrade - Rewrite problems with index pages
brewt 22091 Oct 15, 2013, 3:00 PM
Thread Re: [brewt] Server upgrade - Rewrite problems with index pages
MJB 21800 Oct 16, 2013, 7:08 AM
Thread Re: [MJB] Server upgrade - Rewrite problems with index pages
Andy 21748 Oct 16, 2013, 7:34 AM
Thread Re: [Andy] Server upgrade - Rewrite problems with index pages
MJB 21792 Oct 16, 2013, 7:56 AM
Thread Re: [MJB] Server upgrade - Rewrite problems with index pages
Andy 21787 Oct 16, 2013, 7:58 AM
Thread Re: [Andy] Server upgrade - Rewrite problems with index pages
MJB 21691 Oct 16, 2013, 9:33 AM
Thread Re: [MJB] Server upgrade - Rewrite problems with index pages
Andy 21337 Oct 17, 2013, 1:14 AM
Post Re: [Andy] Server upgrade - Rewrite problems with index pages
MJB 21115 Oct 17, 2013, 9:30 AM