Page is a not externally linkable
- Code, Content, and Presentation
-- Apache Web Server
---- mod rewrite prob


seodaddy99 - 7:48 pm on Oct 21, 2002 (gmt 0)

I have been pounding my head against the wall for several days & I still can't figure out what I'm doing wrong. Any help would sure be appreciated!

We would like
www.domain.com/widgets/page.htm

to be served by
www.domain.com/script.php?pg=page&cat=widgets

We put this in our htaccess file:
RewriteEngine on
RewriteRule ^/widgets/(.*)\.htm$ /solar.php?pg=$1&page=widgets

We get a 404

What am I doing wrong?

Also, when I get this working, I want to do the same thing for bluewidgets, redwidgets etc.
Do I need separate RewriteRules for each or is there a way to make it a variable (instead of just "widgets"), but only with certain values (bluewidgets, etc)

Thanks!


Thread source:: http://www.webmasterworld.com/apache/145.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com