Jump to content

Need Mod Rewrite Help


SevenBC

Recommended Posts

Ok.. I'm very very new to Mod Rewrite.. and I just started reading about it, but I'm pretty much lost.. haha

 

First off, I'm not sure if I'll be able to use it, bcuz the pages that I want to "Rewrite" are receiving variables from other pages using the GET method..

Which, I luckily made it through that.. Let me show you examples of pages I want to rewrite..

 

They aren't using any ID Numbers.. they are using Strings.. which are important, bcuz these strings are used to pass information

such as the header and other info that I do not want to lose.. Here is an example:

 

1.) http://www.sevenbeez.com/watchVideo2.php?id=/videos/e/16711680/wshhXIiiJ3CG68m53wJ1&name=Seal%20-%20A%20Change%20Is%20Gonna%20Come

 

2.) http://www.sevenbeez.com/listenAudio.php?path=mp3/The%20Fugees%20-%20Ready%20Or%20Not.mp3&name=The%20Fugees%20-%20Ready%20Or%20Not

 

3.) http://www.sevenbeez.com/viewLyrics.php?file=lyrics/Carter3/mrcarter.txt&song=Mr.%20Carter

 

 

These are very very very ugly looking links, I know.. but If I could somehow clean it up, without losing the functionality of passing the information, that would be great.. Is this Possible. and if so... HOW DO I DO IT?  Please help!  Thanks.

Link to comment
Share on other sites

The way your URLs are structured right now, it makes it difficult to rewrite them....

 

 

Err...  Here's an example:

 

RewriteEngine On
RewriteRule ^/watch/(.*) watchVideo2.php [QSA]

 

 

 

Just of curiosity, what does your goal URL look like?

Link to comment
Share on other sites

I added this rule, and it had no effect.. I even changed it around a bit, and it didn't alter the URL at all.. im wondering if im missing something very very simple.. I believe my server has mod rewrite capabilities bcuz, I already see other Rewrites within the .htaccess file.. Hmm.. I know that it says someting about adding a $ after the strong code, which I didn't see in the code that u gave me.. but I added that, and still nothing.. any ideas?

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.