Arată versiune īntreagă : Modificare adresa
danutzmaryus
25.12.2009, 07:02
Salut . Am vazut la alte site-uri ca nu au adresa site-ului ca al meu www.nushce.com/index.php?cat_id=6 si ei au www.nushce.com/jocuricumasini/si aici urma jocul ..as vrea sa fac si eu la fel precizez ca folosesc avarcade si cred ca treaba cu adresa ar ajuta mult la cautari in google si banuiesc ca daca fac aces lucru tre sa pun un redirect 301 pe paginile site-ului vechi catre cele noi si am vreo 2000 pagini in google
Fa un fisier .htacces si scrie in el asa :
RewriteEngine On
RewriteBase /
RewriteRule ^(.*)$ index.php?cat_id=$1
danutzmaryus
25.12.2009, 07:13
Am decat asta ErrorDocument 404 /404.shtml
AddOutputFilterByType DEFLATE text/html text/plain text/xml in htacces
Am decat asta ErrorDocument 404 /404.shtml
AddOutputFilterByType DEFLATE text/html text/plain text/xml in htacces
Adauga si liniile pe care ti le-am dat eu.
danutzmaryus
25.12.2009, 07:15
si eu modific RewriteEngine On
RewriteBase /
RewriteRule ^(.*)$ stiri.php?cat_id=$1 <-- aici ? si ce scriu aici ?:?
Pune asta :
DirectoryIndex index.php
Options +Indexes
Options +FollowSymlinks -MultiViews
RewriteBase /
RewriteEngine on
RewriteRule ^view/([0-9]+)/([0-9a-zA-Z'?-]+) index.php?task=view&id=$1&name=$2 [L]
RewriteRule ^cat/([0-9]+)?/([0-9a-zA-Z?-]+)/p([0-9]+) index.php?task=category&id=$1&name=$2&page=$3 [L]
RewriteRule ^cat/([0-9]+)?/([0-9a-zA-Z?-]+)/([0-9a-zA-Z?-]+)/p([0-9]+) index.php?task=category&id=$1&name=$2&sortby=$3&page=$4 [L]
RewriteRule ^profile/([0-9]+)?/([0-9a-zA-Z?-]+) index.php?task=profile&id=$1&name=$2 [L]
RewriteRule ^profile/comments/([0-9]+)?/([0-9a-zA-Z?-]+) index.php?task=users_comments&id=$1&name=$2 [L]
RewriteRule ^page/([0-9]+) index.php?task=view_page&id=$1 [L]
RewriteRule ^task/register index.php?task=register [L]
RewriteRule ^task/lost-password index.php?task=lost_pass [L]
RewriteRule ^task/links index.php?task=links [L]
RewriteRule ^task/allnews index.php?task=news [L]
RewriteRule ^task/members index.php?task=member_list [L]
RewriteRule ^task/messages index.php?task=messages [L]
RewriteRule ^task/search index.php?task=search [L]
RewriteRule ^task/news/item/([0-9]+)/([0-9a-zA-Z?-]+) index.php?task=view_news&id=$1 [L]
RewriteRule ^task/messages index.php?task=messages [L]
danutzmaryus
25.12.2009, 09:11
daca stie cineva cum se rezolva va rog postati :?
Powered by vBulletin® Version 4.1.12 Copyright © 2012 vBulletin Solutions, Inc. Toate drepturile rezervate.
Traducere vBulletin® īn Romānă roStyles Design LLC