Adult Script Pro Community Forums

The forum is here for legacy reasons. No new posts will be created. User registration is disabled! If you have any questions, please email us or check https://www.adultscriptpro.com for more details!

You are not logged in.

#1 2011-06-03 13:47:17

Eri
Member
Registered: 2011-03-18
Posts: 977

.htaccess URL Rewrite

I want to change a url

from
http://mysite.com/embed.php?id=video_id

to
http://mysite.com/embed/video_id/

I have indexed
RewriteRule /embed/(.*)/ embed.php?id=$1

After
<IfModule mod_rewrite.c>
RewriteEngine On

But do not work.
What i a m doing wrong?
Thanks


Best Adult Affilitate Network:
ExoClick
Best Deals on Dedicated Servers - CDN
INXY

Offline

#2 2011-06-03 19:19:00

Coscast
Member
From: Germany
Registered: 2010-10-03
Posts: 546

Re: .htaccess URL Rewrite

Hey Eri,

A little bit off topic, but are you using Apache httpd? I dunno much of Apache but that rule does look like an Apache Rule.

Whatever. You gave your server a rule to rewrite /embed/(.*)/ embed.php?id=$1 but TO WHAT should he/it rewrite that?
something is missing there smile


sgt-halfsize-banner.jpg

Offline

#3 2011-06-04 07:15:39

Eri
Member
Registered: 2011-03-18
Posts: 977

Re: .htaccess URL Rewrite

I would like to make an embed code by php but i do not want to look like a php embed code.
my embed code will be like that:
<object width="500" height="400"><param name="movie" value="http://mysite.com/embed/11745/"></param><param name="AllowScriptAccess" value="always"></param><param name="wmode" value="transparent"></param><embed src="http://mysite.com/embed/11745/" type="application/x-shockwave-flash" wmode="transparent" AllowScriptAccess="always" width="500" height="400"></embed></object>

And at http://mysite.com/embed.php?id=11745 i have made a redirect link http://mysite.com/modules/video/player/ … php?id=$id

also a session this way only http://mysite.com/embed.php can open http://mysite.com/modules/video/player/config_embed.php

This way you protect your video link by Curl hotlinkers smile and ddos attacks.


Best Adult Affilitate Network:
ExoClick
Best Deals on Dedicated Servers - CDN
INXY

Offline

Board footer

Powered by FluxBB