BelThaZoR
Čuven
- Učlanjen(a)
- 13.04.2006
- Poruke
- 814
- Poena
- 680
Na kućnom wamp serveru sva pravila rade kako treba, međutim kad stavim online dobijam grešku 500 stalno. Nisam ranije radio sa rewriteom tako da kapiram da postoji jednostavniji način da se ovo uradi. Ako neko može da pomogne hvala. Evo kako izgleda .htaccess fajl
Evo linka ka mom serveru na kome rewrite funkcioniše: http://thebelthazor.dyndns.org/skyhighsim
Evo linka ka mom serveru na kome rewrite funkcioniše: http://thebelthazor.dyndns.org/skyhighsim
Kod:
# Turn on the rewrite engine
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
# If the request doesn't end in a slash continue processing the rules
RewriteCond %{REQUEST_URI} [^/]$
#main menu
RewriteRule ^about-us$ aboutus.php
RewriteRule ^faq$ faq.php
RewriteRule ^contact-us$ contactus.php
RewriteRule ^support$ support.php
#online shop
RewriteRule ^shop.skyhighsim.com$ http://secure.simmarket.com/skyhighsim.mhtml
RewriteRule ^shop/payment-info$ payment.php
RewriteRule ^shop.skyhighsim.com/Belgrade-Airport-LYBE-4.0$ http://secure.simmarket.com/skihighsim-lybe-4.0-belgrade-nikola-tesla-airport.phtml
RewriteRule ^shop.skyhighsim.com/Tivat-Airport-LYTV-2010$ http://secure.simmarket.com/skyhighsim-tivat-2010.phtml
RewriteRule ^shop.skyhighsim.com/Split-Airport-LDSP-2011$ products.php?pid=ldsp2011
RewriteRule ^shop.skyhighsim.com/Approaching-Tivat$ products.php?pid=lytvapp
RewriteRule ^shop.skyhighsim.com/Osjek-2011$ products.php?pid=ldos2011
RewriteRule ^shop.skyhighsim.com/Charts-Viewer-Gauge$ http://secure.simmarket.com/skyhighsim-charts-viewer-gauge.phtml
#media
RewriteRule ^media/request-a-review-copy$ requestcopy.php
RewriteRule ^media/reviews-and-awards$ reviews.php
RewriteRule ^media/news-archive$ news.php?archive=1
RewriteRule ^media/video-chanel$ http://www.youtube.com/SkyHighSim
RewriteRule ^media/news/(.*)$ news.php?id=$1
#products
RewriteRule ^products/Belgrade-Airport-LYBE-4.0$ products.php?pid=lybe40
RewriteRule ^products/Tivat-Airport-LYTV-2010$ products.php?pid=lytv2010
RewriteRule ^products/Belgrade-Airport-LYBE-4.0-for-XPlane$ products.php?pid=lybe40xp9
RewriteRule ^products/Split-Airport-LDSP-2011$ products.php?pid=ldsp2011
RewriteRule ^products/Approaching-Tivat$ products.php?pid=lytvapp
RewriteRule ^products/Osjek-Airport-2011$ products.php?pid=ldos2011
RewriteRule ^products/Charts-Viewer-Gauge$ products.php?pid=chvg
RewriteRule ^products/Novi-Sad-Čenej-LYNS-Airport-2009$ products.php?pid=lyns2009 [L]
Poslednja izmena: