![]() |
.htaccess url problem
Hi guys i have two problem first...
I have url index.php?clanok=something I tried RewriteRule ^clanok/(.*)$ index.php?clanok=$1 [L] Ok that works good but when i try clanok/services ( it doesnt display any images... how i can fix it? i tried in .css full url: http://blabla/images/blabla.jpg and it works ... but ho i can fix everything without the full url? :P thx Second problem i have second url: index.php?clanok=blog_obsah&id=34 How will looks rewriterule??? _______________________________- If somebody will help me i will be really happy i spend more then 50hours with that but without success. Thx :P |
Assuming you are looking to redirect......>>
Code:
http://example.null/clanok/blog_obsah/id/32Code:
http://example.null/clanok/blog_obsahCode:
RewriteRule ^clanok/(.*)/(.*)/(.*)$ index.php?clanok=$1&$2=$3 [L] |
images
Quote:
ah... i did still try something like: ^clanok/(.*)/(.*)/ ( without the thirt ) and ok thx it works... but it still didnt show me a images :/ how would you repair it? :/ url of image: http://example.sk/clanok/services/images/en.png and images i have in root directory in /images/example.jpg ... css i have in /css/styles.css and in styles ../images/example.jpg and next problem aaarrrghhht when i have to example link index.php?lang=en ( for set english language ) ... how will looks my url? i will need create a next rewriterule RewriteRule ^lang/(.*)$ index.php?lang=$1 [L] ????? issnt it any univeersal solution? all links and urls in one rule? :/ i have more different links... ah :/ i definetly need universal rule |
You are doing something wrong i cant see what in forum write to me PM and i'll try to fix it.
nešiojami kompiuteriai apple |
Quote:
|
Quote:
|
Quote:
thx for help :) its pity damage that i didnt check forum earlier then i found this solution in my code ... i was thinking what could be bad... i tried replace ./images for /images and it worked... but thx to all of you for help :) |
| All times are GMT +1. The time now is 11:12 AM. |
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.