나는 codeigniter로 URL 단축키를 설정하고 있습니다. 모든 것이 훌륭하게 작동하며, 아래와 같이 단축 URL로 작동합니다..htaccess URL을 단축하는데 도움이됩니다.
http://example.com/shorten/i/znAS
할 무엇을 찾고 확인은 내가 htaccess로와 완벽한 안돼서 어떻게이 일을 아무 생각이 내 htaccess로 액세스 할 수있는 내가 그것을 단축 여기이 예제를 다음되어있다 . 위
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^shorten/(.*)$ shorten.php?longurl=$1 [L]
RewriteRule ^([0-9a-zA-Z]{1,6})$ redirect.php?url=$1 [L]
</IfModule>
를 사용 http://briancray.com/posts/free-php-url-shortener-script/
기반의 코드 이그나이터 등의 광산 정말 관련이 없습니다. 좋아, 내 컨트롤러가 짧아서 전화를 걸었다.
나는 다양한 조합을 시도했지만 아무 것도 나를 위해 일하지 않았다. 내 .htaccess.
Options +FollowSymLinks
Options -Indexes
DirectoryIndex index.php
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^shorten/(.*)$ shorten/i/=$1 [L]
#RewriteRule ^(.*)$ index.php/$1 [L]
RewriteRule ^(.*)$ index.php?/$1 [L]
<Files "index.php">
AcceptPathInfo On
</Files>
현재 만보고 미주리에서 구글하지만 난 여기뿐만 아니라 감사 CI와