-1
A
답변
1
SEO-freindly 링크를 살펴보십시오. 그들은 이런 일을 할 것입니다. 당신은 아파치에 대한 귀하의 .htaccess
을 수정해야합니다 :
RewriteEngine On
RewriteBase /path/to
RewriteRule ^(.*)$ /index.php?l=$1
이것은 매우 기본적인 예이다. 조정해야하지만 /xx
을 /index.php?l=xx
2
으로 바꿉니다. URL rewriting이라고합니다.
사용중인 웹 서버에 따라 다릅니다. 의 nginx 서버의 경우
당신은 이런 식으로 작업을 수행 할 수 있습니다 아파치
server {
rewrite ^(/.*)$ /?l=$1 last;
이 참조 : http://httpd.apache.org/docs/2.0/misc/rewriteguide.html
관련 문제
- 1. URL 형식은 <a href="http://api.jquery.com/jQuery.getJSON/" rel="nofollow">jQuery.getJSON</a>에서
- 2. <A href> adding " to URL
- 3. 이벤트 URL 조작 <a> 태그
- 4. URL 단축 - 자동 단축 URL
- 5. 내가 같은 <a href="https://projecteuler.net/" rel="nofollow">https://projecteuler.net/</a> 같은 웹 사이트를 찾고 있었어요
- 6. 사용는 preg_match 내가 같은 URL 뭔가가 URL
- 7. 정규 표현식 : 내가 <a href="http://urlrewriter.net" rel="nofollow noreferrer">urlrewriter.net</a></p> <p>내 의도 된 URL을 사용하고
- 8. mod_rewrite를 내가 같은 URL을 짧은 URL
- 9. PHP는 Wordpress와 같은 짧은 URL
- 10. 웹보기가 나는 다음과 같은 URL을 <a href="http://www.topchickw.com/" rel="nofollow">http://www.topchickw.com/</a>에 대한 웹보기를로드하려고 특정 URL
- 11. jqtree가 <a href="http://mbraak.github.io/jqTree/" rel="nofollow">jqtree docs</a>에서
- 12. 같은 URL 목록에서 다음 페이지의 URL scrapy
- 13. PHP 현재 URL 문제
- 14. <a href="http://www.facebook.com/UsedID" rel="nofollow">http://www.facebook.com/UsedID</a></p> <p>내가 URL을 폭발하고 사용자 ID에게 단지 싶어 =
- 15. 내가이 같은 <a href="http://www.delicious.com" rel="nofollow">Delicious</a>에서 데이터를 검색하는 스크립트를 만들었습니다
- 16. 내가 <a href="https://redom.js.org" rel="nofollow noreferrer">redom</a> 라이브러리를 가져하려고
- 17. 내가 <a href="http://formvalidation.io/" rel="nofollow">FormValidation</a> 플러그인을 사용하고
- 18. PHP는 다음 URL을 고려하십시오 URL
- 19. MigraDoc - 나는 코드 아래 사용 "<a href="http://host/img.png" rel="nofollow">http://host/img.png</a>"와 같은 URL 뭔가에 저장됩니다 <code>image</code> 추가 할 수 없습니다입니다 외부 URL
- 20. <a></a> 자동 참조 페이지 URL 내부 <a></a> 태그
- 21. 어떻게 <strong>빌</strong>와 <strong>MySQL의</strong> 데이터베이스 티니 URL (단축 URL)를 저장을 막을 수 어떻게 PHP는
- 22. URL : 당신이 stackoverflow.com의 URL을 보면 확장자 또는 페이지와 같은 디렉토리
- 23. 내가 <a href="https://github.com/jeromegn/Backbone.localStorage" rel="nofollow">Backbone.localStorage</a>를 사용하여 다음과 같은 컬렉션이있어
- 24. 내가 <a href="https://flowtype.org/" rel="nofollow noreferrer">Flow</a>와 함께 다음과 같은 문제에 직면하고있다
- 25. PHP의 정규 표현식/찾기 "<a></a>"
- 26. 정식 URL 사양이 같은 <a href="https://en.wikipedia.org/wiki/Search_engine_optimization" rel="nofollow">search engine optimization (SEO)</a> 목적을 위해 표준 URL의 HTTP 헤더를 사용하고
- 27. JQuery와는 다음과 같은`<a>`태그
- 28. 페이지 ID없이 '?' 가 자주 다른 웹 사이트에서 내가 볼 <a href="http://www.website.com/sitefolder/pageid/" rel="nofollow">http://www.website.com/sitefolder/pageid/</a> : URL
- 29. 내가 <a href="http://html2canvas.hertzen.com/" rel="nofollow">html2canvas</a> 함께 일하고 있어요
- 30. jQuery를 반복 기능 <a href="https://api.jquery.com/each/" rel="nofollow">each</a> 같은
이 일을 다시 오류를 확인하기 위해 내부 서버 오류 500 –
확인 방문 내 웹 사이트를 일으키는 –
@AliveColdJuan 귀하의 서버 구조에 대해 잘 모르겠습니다. .htaccess에 RewriteBase를 추가해야 할 수도 있습니다. –