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 11-13-2011, 06:41 AM   PM User | #1
MattClark
Regular Coder

 
Join Date: Jan 2011
Posts: 120
Thanks: 6
Thanked 2 Times in 2 Posts
MattClark has a little shameless behaviour in the past
Incredibly Confused on Mod-Rewrites

Hi,

I'm trying to redirect

http://www.sitenamehere.com/watch.php?movie_id=($phpvariable here)

to

http://www.sitenamehere.com/watch/movie/($phpvariable here)

------------------------------------------------------------------
Also, watch.php can also be:

watch.php?tv_show_id=
watch.php?episode_id=

And I would like it to turn those into

/watch/tvshow/$tv show variable here
/watch/episode/$episode variable here

I'm currently trying to get it to work for just movie_id, and I was trying:

Code:
RewriteRule ^/watch/([0-9]+)$ /watch.php?movie_id=$1
Can anyone point me to why that isn't redirecting anything? Also, how would I change this to redirect movie_id, tv_show_id, and episode_id off of watch.php?

Thanks so much, and sorry for the long post
MattClark 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 02:50 PM.


Advertisement
Log in to turn off these ads.