mod_rewrite problems
Posted: Tue Jul 22, 2008 12:54 pm
Good day,
Im using mod_rewrite to redirect users to existing pages from fake, user friendly pages.
The problem that Im having is that when Im redirected to the page, the url changes to the one of the existing page.
Here is my .htaccess code:
So, the issue is, how can I maintain the fake, user-friendly instead of being redirect to the real url?
thanks in advance.
caedo.
Im using mod_rewrite to redirect users to existing pages from fake, user friendly pages.
The problem that Im having is that when Im redirected to the page, the url changes to the one of the existing page.
Here is my .htaccess code:
Code: Select all
DirectoryIndex index.php
RewriteEngine On
Options +FollowSymlinks
RewriteCond %{SCRIPT_FILENAME} !-f
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteRule ^(.+)/(.+).htm$ http://mydomain.com/front-ctrl.php?url=%{http_host}&cat=$1&page=$2[L]
So, the issue is, how can I maintain the fake, user-friendly instead of being redirect to the real url?
thanks in advance.
caedo.