PHP URL Routing or .htaccess
Moderator: General Moderators
PHP URL Routing or .htaccess
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?
- JAB Creations
- DevNet Resident
- Posts: 2341
- Joined: Thu Jan 13, 2005 6:44 pm
- Location: Sarasota Florida
- Contact:
Re: PHP URL Routing or .htaccess
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