Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Closed TopicStart new topic
> Jak to działa w osc URLs
wozniak
post 1.08.2007, 17:19:20
Post #1





Grupa: Zarejestrowani
Postów: 278
Pomógł: 0
Dołączył: 21.11.2003

Ostrzeżenie: (0%)
-----


Witam, pobralem dzisij osc z netu i jest w nim funkcja URLs ktora zmienia link z Cpath=34.... na np. akcesoria-piekarskie-c-90.html

Jak to działa? Pytam bo własciwie u mnie nie działa pokazuje sie tylko bład 404
Go to the top of the page
+Quote Post
NoiseMc
post 1.08.2007, 17:30:47
Post #2





Grupa: Zarejestrowani
Postów: 398
Pomógł: 10
Dołączył: 24.11.2004
Skąd: Łódź

Ostrzeżenie: (0%)
-----


Musisz uruchomic pewnie mod_rewrite na serwerze upewnic sie ze mozna z poziomu .htaccess zmieniac ustawienia serwera i sprawdzic czy reguly przepisywania url-i dzialaja


--------------------
Go to the top of the page
+Quote Post
wozniak
post 1.08.2007, 18:03:52
Post #3





Grupa: Zarejestrowani
Postów: 278
Pomógł: 0
Dołączył: 21.11.2003

Ostrzeżenie: (0%)
-----


Ok, to juz wszystko wiem mam ten plik .ht.....
Wyglada on tak:


Options +FollowSymLinks
RewriteEngine On
RewriteBase /html/viella/sklep/

RewriteRule ^(.*)-p-(.*).html$ product_info.php?products_id=$2&%{QUERY_STRING}
RewriteRule ^(.*)-c-(.*).html$ index.php?cPath=$2&%{QUERY_STRING}
RewriteRule ^(.*)-m-([0-9]+).html$ index.php?manufacturers_id=$2&%{QUERY_STRING}
RewriteRule ^(.*)-pi-([0-9]+).html$ popup_image.php?pID=$2&%{QUERY_STRING}
RewriteRule ^(.*)-t-([0-9]+).html$ articles.php?tPath=$2&%{QUERY_STRING}
RewriteRule ^(.*)-a-([0-9]+).html$ article_info.php?articles_id=$2&%{QUERY_STRING}
RewriteRule ^(.*)-pr-([0-9]+).html$ product_reviews.php?products_id=$2&%{QUERY_STRING}
RewriteRule ^(.*)-pri-([0-9]+).html$ product_reviews_info.php?products_id=$2&%{QUERY_STRING}
RewriteRule ^(.*)-i-([0-9]+).html$ information.php?info_id=$2&%{QUERY_STRING}

Dodam ze aby dostac sie przez ftp do folderu sklepu musze wejsc w html/viella/sklep/

I teraz jak wrzuce to serwer to pokazuje sie blad 500
Go to the top of the page
+Quote Post
NoiseMc
post 1.08.2007, 18:43:43
Post #4





Grupa: Zarejestrowani
Postów: 398
Pomógł: 10
Dołączył: 24.11.2004
Skąd: Łódź

Ostrzeżenie: (0%)
-----


Moze sprobuj usunac RewriteBase /html/viella/sklep/ albo zastap /html/viella/sklep/ adresem sklepu, mozesz jeszcze sprobowac zamiast:
Kod
RewriteRule ^(.*)-p-(.*).html$ product_info.php?products_id=$2&%{QUERY_STRING}

dac:
Kod
RewriteRule ^(.*)-p-(.*).html$ /product_info.php?products_id=$2&%{QUERY_STRING}

poprobuj kilka roznych kombinacji.


--------------------
Go to the top of the page
+Quote Post
wozniak
post 1.08.2007, 19:28:31
Post #5





Grupa: Zarejestrowani
Postów: 278
Pomógł: 0
Dołączył: 21.11.2003

Ostrzeżenie: (0%)
-----


Nic nie pomogło
Go to the top of the page
+Quote Post
Cienki1980
post 1.08.2007, 21:24:54
Post #6





Grupa: Przyjaciele php.pl
Postów: 1 590
Pomógł: 40
Dołączył: 11.01.2007
Skąd: Centrum

Ostrzeżenie: (0%)
-----


Zamykam

Proszę zapoznać się z Tematyką i zasadami panującymi na forum Przedszkole i wysłać mi lub innemu moderatorowi/opiekunowi poprawny tag do tematu.

Do tego czasu wątek pozostanie zamknięty.


--------------------
404
Go to the top of the page
+Quote Post

Closed TopicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Wersja Lo-Fi Aktualny czas: 30.06.2025 - 08:23