NameSilo

MOD REWRITE help

Spaceship Spaceship
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
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
Unstoppable DomainsUnstoppable Domains
0
•••
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
•••
try this:

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

Not sure that will work tho.
 
0
•••
Appraise.net

We're social

Unstoppable Domains
Domain Recover
DomainEasy — Payment Flexibility
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back