NameSilo

MOD REWRITE help

SpaceshipSpaceship
Spacemail by SpaceshipSpacemail by Spaceship
Namecheap AuctionsNamecheap Auctions
Watch

Refrozen

Account Closed
Impact
9
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^news-(.*) /index.php [L]
RewriteRule [.*] http://archive.domain.com/$1



I want to rewrite everything that doesn't start with "news-" to archive.domain.com/path, but, everything that DOES start with "news-" to index.php



It doesn't do what I want, at all.
Help/
 
0
Close
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
0
Close
That seems to only return one result (well, a modification of), a result that I know how to do, however, not what i'm trying to accomplish at all.

I want to redirect EVERY file that DOESN'T EXIST and that begins with /news- to index.php
everything else to archive.domain.com/$1
 
0
Close
try this:

replace [.*] with (.*) and move the [L] to the last line.

Not sure that will work tho.
 
0
Close
DomainEasy: flexible LTO options. Close more domain deals with financing.

We're social

Escrow.com
Spaceship
Domain Recover
CryptoExchange.com

NamePros updates

Filters for activity feeds
Your news feed, Latest activity, and the activity tab on profiles now have filter buttons: All, Posts, Quick replies, and Other. Your...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back