I've a problem with my .htaccess to use friendly url in my website.
My server structure is:
- www:
- test-web (website test code).
- shop-test.
- .htaccess
- others files to my shop website (index, images, etc...)
- shop-test.
- test-web (website test code).
My .htaccess have the next code to redirect the url
<IfModule mod_rewrite.c>
Options +FollowSymLinks
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !=/favicon.ico
RewriteEngine on
RewriteBase /test-web/shop-test
RewriteRule ^pay$ index.php?section=buy [L]
RewriteRule ^details/(.+)/?$ index.php?section=details&item=$1 [L]
</IfModule>
But if I write my url like the next example, doesn't work:
<a href='/test-web/shop-test/pay'>go to pay<a>
I tried to write others links like "/shop-test/pay", just put "pay" in my link and change the RewriteBase in my .htaccess to "/shop-test" or "/test-web" and anything works.
What is my mistake?