homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / Code, Content, and Presentation / Apache Web Server
Forum Library, Charter, Moderators: Ocean10000 & incrediBILL & phranque

Apache Web Server Forum

Help with mod_rewrite

10+ Year Member

Msg#: 247 posted 7:17 pm on Apr 21, 2003 (gmt 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.



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

Msg#: 247 posted 7:40 pm on Apr 21, 2003 (gmt 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]


Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved