NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming
Reload this Page MOD REWRITE help

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.

Advanced Search


Closed Thread
 
LinkBack Thread Tools
Old 01-25-2006, 07:56 PM THREAD STARTER               #1 (permalink)
Account Closed
 
Refrozen's Avatar
Join Date: Jun 2005
Posts: 745
Refrozen will become famous soon enoughRefrozen will become famous soon enough
 



MOD REWRITE help


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/
Refrozen is offline  
Old 01-25-2006, 09:32 PM   #2 (permalink)
Eating Pie
 
iNod's Avatar
Join Date: Nov 2004
Location: Canada
Posts: 2,272
iNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud of
 


Special Olympics AIDS/HIV Cystic Fibrosis Save The Children Baby Health Cystic Fibrosis
http://www.webmaster-toolkit.com/mod...enerator.shtml

Great tool, That ought to put you on the right path.

iNod.
__________________
I feel old.
iNod is offline  
Old 01-25-2006, 11:54 PM THREAD STARTER               #3 (permalink)
Account Closed
 
Refrozen's Avatar
Join Date: Jun 2005
Posts: 745
Refrozen will become famous soon enoughRefrozen will become famous soon enough
 



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
Refrozen is offline  
Old 01-26-2006, 12:09 AM   #4 (permalink)
NamePros Regular
Join Date: Feb 2004
Posts: 720
Caveman has a spectacular aura aboutCaveman has a spectacular aura about
 



try this:

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

Not sure that will work tho.
Caveman is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
mod rewrite with subdomains gamex Programming 1 12-23-2005 12:57 AM
Mod ReWrite Job dalmuti Web Development Wanted 0 11-16-2005 02:14 PM
Question with mod rewrite gamex Programming 6 06-29-2005 06:07 AM
phpbb mod instlation help needed ill pay 20$ a mod jamieneil Website Development 6 05-02-2005 08:17 AM
mod rewrite dotcommakers Website Development 2 01-22-2005 11:05 PM

Liquid Web Smart Servers  
All times are GMT -7. The time now is 01:22 AM.

Managed Web Hosting by Liquid Web
Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger