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-03-2011, 10:47 AM   PM User | #1
paddyfields
Regular Coder

 
Join Date: Dec 2010
Location: London
Posts: 283
Thanks: 60
Thanked 11 Times in 11 Posts
paddyfields is an unknown quantity at this point
basic htaccess url re-write problem.

Hi. I'm new to this .htaccess malarky so if you could confirm whether this is correct i'd really appreciate it.

this is my .htaccess file;

Code:
RewriteEngine on
RewriteRule ^add/event/$ addevent.php [L]
RewriteRule ^user/([^/\.]+)/?$ user.php?id=$1 [L]
And I want these URL re-write's to happen...

www.mywebsite.com/user.php?id=10
to
www.mywebsite.com/user/10

and

www.mywebsite.com/addevent.php
to
www.mywebsite.com/add/event

I can't get it working though, is this not correct?

Many thanks,
Patrick.

Last edited by paddyfields; 03-03-2011 at 10:55 AM..
paddyfields 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 03:23 AM.


Advertisement
Log in to turn off these ads.