Forum Moderators: phranque

Message Too Old, No Replies

I need help with rewriting

         

Snickers

4:46 pm on Apr 24, 2005 (gmt 0)

10+ Year Member



Hello,

I read tons of documents etc, but I simply can't figure this coding out.

So I hoped any out there, could give me an hand.

I need to rewrite:

[domain-name.com...]

into:

[domain-name.com...]

AND

[domain-name.com...]

into:

[domain-name.com...]

There are tons more to rewrite, but if you could help me with those 2 i guess I could fix the rest my self.

I would really appreciate any help..

Thanks in advance..

Regards,
Casper

jd01

7:06 pm on Apr 24, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi Casper,

The biggest problem you are going to run into, is it appears you are going the wrong way... and then it gets more complicated...

You need a link on your page to the URL you want to be displayed in the address bar. (fake)

Then you can use mod_rewrite to serve the information from the page you want to hide. (real)

Here is the complicated part... You also have to get the variables to the 'real' page, so it displays the right information, and since they are not in the URL's you are asking for, you will probably need to find a way to pass the variable to the 'real' php page without using the URL... or it just won't work.

Something else to keep in mind, if you are trying to get your pages indexed, is a SE will not look past the? for any information when trying to index a page, so what you asked for is going to be looked at as effectively 1 page with everchanging content...

If you could rewrite something more like this it would be easier and probably more beneficial...

http//yoursite.com/page/variable/for/thephp/file.html

If you are not trying to use this for SE indexing, but just removal of the SID's you will still need to find a way to pass the variables, and get any of them you need to the file driving the site or cart.

Hope this helps.

Justin

Edited: Added clarity.