Go Back   CodingForums.com > :: Server side development > Apache configuration

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 03-24-2011, 06:17 PM   PM User | #1
cancer10
Regular Coder

 
Join Date: Jun 2006
Location: India
Posts: 799
Thanks: 211
Thanked 2 Times in 2 Posts
cancer10 can only hope to improve
Question Adding Ignore list in Apache .htaccess

Hi

I currently have an .htaccess file and what it does is, when someone types the url http://example.com/username, it calls the user_profile.php page in the backend and shows the user's profile for the username supplied.

The contents of the ,htaccess file is

Code:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([^/]+)/?$ user_profile.php?id=$1& [L,NC]
The code works fine so far only that when someone types http://example.com/blog or http://example.com/forum it treats them as the username.

I was wondering if we can add an ignore list or something in the .htaccess file for the following

Code:
/blog
/forum/
and all php files i.e. *.php
is this possible?

Any help will be appreciated.


Thanks in advance
cancer10 is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 06:05 PM.


Advertisement
Log in to turn off these ads.