Welcome to WebmasterWorld Guest from

Forum Moderators: Ocean10000 & incrediBILL & phranque

Message Too Old, No Replies

Help with mod_rewrite


7:17 pm on Apr 21, 2003 (gmt 0)

New User

10+ Year Member

joined:Apr 21, 2003
votes: 0

Hi everybody,
I require help on mod_rewrite. I read info about it and wrote .htaccess file.
I want url like this
to go to

my .htaccess file looks like
RewriteEngine On
RewriteRule ^/(.*)$ /hcs/details.php?cat=$1

I uploaded .htaccess file in hcs directory. I am not able to access any file in hcs directory. It say 403 Forbidden access error.

Please help.

P.S. mod_rewrite module is loaded.

7:40 pm on Apr 21, 2003 (gmt 0)

Senior Member

WebmasterWorld Senior Member jdmorgan is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Mar 31, 2002
votes: 0


Welcome to WebmasterWorld [webmasterworld.com]!

www.xyz.com/hcs/abc -> www.xyz.com/hcs/details.php?cat=abc

Options +FollowSymLinks
RewriteEngine on
RewriteCond %{REQUEST_URI} !^/hcs/details\.php
RewriteRule ^hcs/(.*)$ /hcs/details.php?cat=$1 [L]

The RewriteCond prevents recursion.

If you have further problems, please post the appropriate data from your error log file.

More info: Introduction to mod_rewrite [webmasterworld.com]



Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members