Forum Moderators: phranque

Message Too Old, No Replies

RewriteCond and RewriteRules - explode var with php must be better ?

2 method - htaccess vs php

         

webstyler

9:06 am on Jul 11, 2008 (gmt 0)

10+ Year Member



Hello

Situation: customer can be call this page
[mysite.com...] (tech is category)
[mysite.com...] (smartphone is sub-category)
[mysite.com...] OR [mysite.com...] (htc is a group)
[mysite.com...] (dual_touch is a page of article)

Any of these condition must be call different destination page.

So, what's better:
> create rewriterule that check and rewrite everyone (possible?)
OR
> send to single php page all after [mysite.com...]

?

Thanks for any help/suggest

jdMorgan

3:37 pm on Jul 11, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Either way -- Depends on your preference and experience with each method.

If you are on Apache 2.x, see also the Apache core AcceptPathInfo directive, which can be quite useful if you decide to let PHP parse the URLs. AcceptPathInfo is not available in Apache 1.x.

Jim