| | |||||
| ||||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | THREAD STARTER #1 (permalink) |
| Account Closed Join Date: Jun 2005
Posts: 745
![]() ![]() | 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/ |
| |
| | #2 (permalink) |
| Eating Pie Join Date: Nov 2004 Location: Canada
Posts: 2,272
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | http://www.webmaster-toolkit.com/mod...enerator.shtml Great tool, That ought to put you on the right path. iNod.
__________________ I feel old. |
| |
| | THREAD STARTER #3 (permalink) |
| Account Closed Join Date: Jun 2005
Posts: 745
![]() ![]() | 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 |
| |
![]() |
| 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 |