Arată versiune īntreagă : Problema .htaccess
Salut,
Ma confrunt cu o problema destul de urata in .htaccess (destul de urata pentru ca nu i-am gasit nici o rezolvare dupa cateva ore ).
Deci am site-ul www.xxx.ro
Cu regula
RewriteRule ^iaw/(.*) http://www.xxx.ro/ImagesAndWords/_lv_display.php?$1 [NC]
ar trebui sa obtin link-ul : www.xxx.ro/iaw/ , dar in schimb imi afiseaza : http://www.xxx.ro/ImagesAndWords/_lv_display.php
Ce este gresit ?
RewriteRule ^iaw/(.*)$ http://www.xxx.ro/ImagesAndWords/_lv_display.php?$1 [NC]
din cate stiu eu .
incearca cu ce ti-am dat eu
Multumesc pentru raspuns. Am modificat dar nu s-a schimbat nimic.
Cam acesta este codul care il am in .htaccess
# Redirects the root directory
RedirectMatch permanent ^/$ http://www.xxx.ro/app/home/
Options +FollowSymlinks
RewriteEngine on
# New rule added below - December 29, 2008
# RewriteRule ^a01/(.*) __sw_APP.php?$1 [NC]
RewriteRule ^s01/(.*) __sw_S01.php?$1 [NC]
RewriteRule ^app/(.*) __sw_APP.php?$1 [NC]
RewriteRule ^iaw/(.*)$ http://www.xxx.ro/ImagesAndWords/_lv_display.php?$1 [NC]
#Prevents hotlinking to images
#RewriteCond %{HTTP_REFERER} !^$
#RewriteCond %{HTTP_REFERER} !^http://(www\.)?luminous-lint.com/.*$ [NC]
#RewriteRule \.(gif|jpg)$ - [F]
#Redirects
DirectoryIndex http://www.xxx.ro/app/home/
Redirect /__sw.php http://www.xxx.ro/app/home/
Redirect /_switchbox.php http://www.xxx.ro/app/home/
Redirect /index.htm http://www.xxx.ro/app/home/
Redirect /index.html http://www.xxx.ro/app/home/
RewriteRule ^iaw/(.*)$ ttp://www.xxx.ro/ImagesAndWords/_lv_display.php?$1 [NC]
# 400 Bad request
# 401 Unauthorized
# 403 Forbidden
# 404 Not found
# 500 Internal server Error
# Revised April 17, 2008
ErrorDocument 400 http://www.xxx.ro/app/home/
ErrorDocument 401 http://www.xxx.ro/app/home/
ErrorDocument 403 http://www.xxx.ro/app/home/
ErrorDocument 404 http://www.xxx.ro/app/home/
ErrorDocument 500 http://www.xxx.ro/website_down.html
#Prevents search engines and specified users scraping the content
order allow,deny
deny from 202.179.181.140
allow from all
#Prevents users seeing the htaccess file
<Files .htaccess>
order allow,deny
deny from all
</Files>
RewriteRule ^iaw/(.*)$ ttp://www.xxx.ro/ImagesAndWords/_lv_display.php?$1 [NC]
RewriteRule ^iaw/(.*)$ http://www.xxx.ro/ImagesAndWords/_lv_display.php?$1 [NC]
Greseala aia o vazusem dupa ce am postat aici si am corectat-o dar nu acolo este buba.
Apare de 2 ori: RewriteRule ^iaw/(.*)$ http://www.xxx.ro/ImagesAndWords/_lv_display.php?$1 [NC]
mateiuli
05.02.2011, 09:13
Incearca asa:
RewriteRule ^iaw/([0-9A-Za-z]+) http://www.xxx.ro/ImagesAndWords/_lv_display.php?ceva=$1
AboutWeb
06.02.2011, 08:17
Poti incerca si asa
RewriteRule ^http://www\.xxx\.ro/ImagesAndWords/_lv_display\.php?$ http://www.xxx.ro/iaw [L]
Am abandonat chestia asta acu cateva saptamani.
Am incercat toate variantele care le-ati dat mai sus, plus alte cateva dar nu tot nu mergea.
Problema nemaifiind de actualitate am sa inchid topicul. Multumesc pentru ajutor !
Powered by vBulletin® Version 4.1.12 Copyright © 2012 vBulletin Solutions, Inc. Toate drepturile rezervate.
Traducere vBulletin® īn Romānă roStyles Design LLC