Page 1 of 1

PHP URL Routing or .htaccess

Posted: Thu Jan 22, 2009 12:14 am
by EnDLeSs
I was just wondering, If you want to rewrite the urls on your CMS would you use PHP URL Routing or simply use the .htacess file?

Re: PHP URL Routing or .htaccess

Posted: Mon Feb 02, 2009 10:57 pm
by JAB Creations
I hate WordPress but this works though not on localhost for me. Hopefully this will work for you...

Code: Select all

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /blog/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /blog/index.php [L]
</IfModule>
 
# END WordPress