View Full Version : Mod rewrite
Chatmaster
08-13-2007, 01:55 PM
Alright, I am an ASP guy and truly not that good with PHP. Would anyone be nice enough to give us a summary on how mod rewrite can be done in PHP or if possible using cpanel.
Blazingpie
08-13-2007, 02:33 PM
you use an .htaccess file for mod_rewrites, afaik, as mod_rewrites are done at server level, not application level.
SEOmoz has a decent explanation of mod_rewrites: http://www.seomoz.org/article/guide-to-applying-301-redirects-with-apache
tho do you mean rewriting a url, eg from page.php?pest=hobo to /hobos-infestions-are-difficult-to-remove ?
Chatmaster
08-13-2007, 02:39 PM
tho do you mean rewriting a url, eg from page.php?pest=hobo to /hobos-infestions-are-difficult-to-remove ?
Yep! That is exactly what I am talking about...
Carl is an expert at this, send him a PM if he doesnt notice it
LOL... well I'm still learning about mod_rewrite, but it is very powerful - especially for SEO.
A rewrite can't usually be done in CPanel as such, and I can't think of many php situations where you would do one there as first choice.
Why don't you give us some more specific specs and we can have a look?
Cheers,
Paz.
Chatmaster
08-14-2007, 10:17 PM
Paz, my main objective is to be able to refer people to this thread. I often get asked how mod rewrite gets done using PHP and it will be usefull to refer the people to a thread that can explain it in detail.
daniel
09-04-2007, 09:11 AM
mmm, maybe we can write this up as a article too,
It will work well for link bait
Daniel
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.