나는이 URL로 리디렉션 리디렉션 스크립트가.htaccess 파일에서 URL 재 작성을 설정하는 방법은 무엇입니까?
내가
또는
로 URL을 다시 작성하려면http://my-domain.com/?http://www.google.com 16,나는이 함께 할 수있는 htaccess로 그래서 내가 어떤 코드 나 자신을 시도 알고있다. 내 웹 디렉토리에 .htaccess 파일을 생성하고 난 몇 가지 코드 예를 들어 넣어 :
# Prevent Apache from serving .ht* files: <FilesMatch "^\.ht"> Order allow,deny Deny from all </FilesMatch> RewriteEngine on RewriteCond %{HTTP_HOST} ^www.my-domain.com$ [NC] RewriteRule ^(.*)$ http://my-domain.com/$1 [R=301,L] RewriteRule ^embed/([^\.]+)\.php$ /$1 [L] RewriteRule URL.php/
을하지만 여전히 내가이 일을하려고 여기
'php'태그가 필요하지 않다고 생각합니다. – GrumpyCrouton