Forum Moderators: phranque
my .htaccess is
RewriteEngine On
DirectoryIndex index.php
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([^/]+)/?$ blog.php?user=$1 [L]
how can I hide real URL domain.com/blog.php?user=anyone&post=anything to blog.domain.com/anyone/?anything
please help me.
Regards,
Bayarkhuu Amar
DirectoryIndex index.php
RewriteEngine on
#
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([^/]+)/([^/]+)/?$ /blog.php?user=$1&post=$2 [L]
#
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([^/]+)/?$ /blog.php?user=$1 [L]
DirectoryIndex index.php
RewriteEngine on
#
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([^/]+)/([^/.]+)/?$ /blog.php?user=$1&post=$2 [L]
#
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([^/.]+)/?$ /blog.php?user=$1 [L]
Jim