htaccess

Gestart doorKrm36 reacties67 weergaven

37 berichten · pagina 2 van 3

Krm

Lid · Topicstarter

Berichten
6.235
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
ik heb je puntjes verstuurd

shit nu werkt index.php niet meeryummie
0
Berichten
1.053
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Ik kan gewoon naar shorthier.nl gaan?
0
Krm

Lid · Topicstarter

Berichten
6.235
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
ja ik had weggehaald probeer nu is ?

htpp://shorthier.nl/5831

werkt wel
0
Berichten
1.053
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Hoe heb je je htaccess nu staan?
0
Krm

Lid · Topicstarter

Berichten
6.235
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
RewriteEngine on
RewriteRule ^([0-9]*)$ iets.php?id=$1 [L]
0
Berichten
1.053
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
En hoe heb je iets.php staan?
0
Krm

Lid · Topicstarter

Berichten
6.235
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
ja php code die doorstuurt naar de lange url pagina
0
Berichten
1.053
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Stuur mij eens ff die PHP scripts hoe je het hebt staan. Misschien licht het daaraan.
0
Krm

Lid · Topicstarter

Berichten
6.235
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
denk niet dat het daaraan ligt

[COLOR= #0000BB]<?php

$result[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"SELECT * FROM shorter WHERE korteurl="[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]id[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]" "[/COLOR][COLOR= #007700]);[/COLOR]

[URL="http://www.php.net/while"]while[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$row[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_fetch_array"]mysql_fetch_array[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$result[/COLOR][COLOR= #007700]))
  {[/COLOR]
    [URL="http://www.php.net/header"]header[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]Location: [/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$row[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]langeurl[/COLOR][COLOR= #007700]]);[/COLOR]
        [URL="http://www.php.net/exit"]exit[/URL][COLOR= #007700];
  }[/COLOR]
?>
0
Berichten
1.053
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Volgens mij moet je hem zo hebben:

[COLOR= #0000BB]<?php[/COLOR]

[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/isset"]isset[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]id[/COLOR][COLOR= #007700]])){[/COLOR]
    [COLOR= #0000BB]$sql[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"SELECT * FROM shorter WHERE korteurl="[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]id[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]" "[/COLOR][COLOR= #007700]);[/COLOR]
    [URL="http://www.php.net/while"]while[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$row[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_fetch_array"]mysql_fetch_array[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$result[/COLOR][COLOR= #007700])){[/COLOR]
        [URL="http://www.php.net/header"]header[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]Location: [/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$row[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]langeurl[/COLOR][COLOR= #007700]]);
    }
}[/COLOR] [URL="http://www.php.net/else"]else[/URL] [COLOR= #007700]{[/COLOR]

?>

//Mijnsite

[COLOR= #0000BB]<?php[/COLOR]
[COLOR= #007700]}[/COLOR]
?>
0
Krm

Lid · Topicstarter

Berichten
6.235
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
maakt geen verschil
0
Berichten
1.053
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Zet dit een helemaal boven in je htaccess: Options +FollowSymlinks
0
Berichten
1.053
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Daar gaat het tog om of niet?
0
Krm

Lid · Topicstarter

Berichten
6.235
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
ja maar als je
http://shorthier.nl
gaat werkt het niet confused
0

Jouw reactie

Deel je idee, stel een vraag of help een ander verder.

Editor laden…

Praat mee met de One2xs-community.

Inloggen om te reageren