Salutare,
Nu pot sa-mi dau seama de ce nu se rescriu url-urile. Local merg struna, cand le pun pe server nu merg deloc. Poate ma ajuta cineva.
Codul php:
URL:while ($query = mysql_fetch_array($result)) {
$title = htmlspecialchars($query["title"]);
$id = $query["id"];
$category = $query["category"];
$seo_title = str_replace(" ","-",$title);
$seo_title = str_replace("&","and",$seo_title);
$seo_category = str_replace(" ","-",$category);
$seo_category = str_replace("&","-and-",$seo_category);
$seo_category = str_replace("&","-and-",$seo_category);
$seo_category = str_replace("/","-and-",$seo_category);
$seo_category = str_replace("::","/",$seo_category);
si .htaccess:<a href="<?php print $baseHREF; ?><?php print $seo_category; ?>/<?php print $seo_title; ?>-download-<?php print $id; ?>.html"><?php print $title;?></a>
Eroare de pe server:Options +FollowSymLinks
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule -(\d*).html$ soft.php?id=$1
Aveti vreo idee de ce nu ruleaza pe server?Not Found
The requested URL /Folder/The-Category/Sub-category/Some-File-download-id.html was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Multumesc.



Răspunde cu citat