.htaccess MOD REWRITE

Status
Not open for further replies.

DarkDragonLord

New Member
Messages
782
Reaction score
0
Points
0
Hello everyone!


Well, i need urgent a mod rewrite rule to my .htaccess!

So, instead of my link be:
www.raphaelddl.com/index.php?ddl=portfolio&lang=en&ports=videos
(Index using language English > Portfolio > Videos)

i want to be something near this:
www.raphaelddl.com/en/portfolio/videos



But one thing you must consider, since my website is multi language, my links always something like this:
PHP:
<?php
$default = 'en';
if (isset($_GET['lang']))
echo './main_'.$_GET['lang'].'.html';
else
echo $default;
?>

This way it checks the lang array.

Even with mod rewrite, this will work?

Thanks

i'll pay credits for you
maybe something like 100 or near
Edit:
.
.
So, anyone know how make that? I'm kinda too busy with php to try make myself
 
Last edited:

Slothie

New Member
Messages
1,429
Reaction score
0
Points
0
Code:
Options +FollowSymLinks
RewriteEngine on

RewriteRule /ddl/(.*)/lang/(.*)/ports/(.*)\.html index.php?ddl=$1&lang=$2&ports=$3

Almost what you want :p Not quite as its much longer but I'm too lazy to think much more.
 

DarkDragonLord

New Member
Messages
782
Reaction score
0
Points
0
Code:
Options +FollowSymLinks
RewriteEngine on

RewriteRule /ddl/(.*)/lang/(.*)/ports/(.*)\.html index.php?ddl=$1&lang=$2&ports=$3
Almost what you want :p Not quite as its much longer but I'm too lazy to think much more.

xDDD
i'll test here, if works and be what i want, i'll send the credits to you ^^
Edit:
.
.
.
.


did not worked :S

it just made the index.php hidden

now link is:
http://raphaelddl.com/?ddl=portfolio&lang=en&ports=videos
Edit:
.
.
.
no help T_T??
i'll pay more for that then :S
 
Last edited:

hieufpt156

New Member
Messages
19
Reaction score
0
Points
0

Livewire

Abuse Compliance Officer
Staff member
Messages
18,169
Reaction score
216
Points
63
Topic closed, this topic is 3 years old -and- you failed to follow the rules of the section as no offer was made for credit-based payment.
 
Status
Not open for further replies.
Top