NameSilo

MOD REWRITE help

SpaceshipSpaceship
SpaceshipSpaceship
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
CatchedCatched

We're social

Escrow.com
Spaceship
Domain Recover
CryptoExchange.com

NamePros updates

Switch between accounts
You can now stay logged in to more than one NamePros account in the same browser. Click your avatar, then "Accounts in this browser", to...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back