milanello72 Posted April 28, 2015 Share Posted April 28, 2015 (edited) hi... my code works fine on localhost... but on server there are some problems... If I want to see this page katarinabulatovic.webuda.com/katarina/senior-clubs.html then I will have this error: The requested URL /katarina/senior-clubs.html was not found on this server. On server in the root directory it was necessary to put in .htaccess this code: RewriteBase /katarinabulatovic.webuda.com and I have 2 directories because the website has 2 versions... In every folder I have put a file .htaccess ... For example in the folder katarina I have this code: RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^index.html index.php [N] RewriteRule ^([a-zA-Z0-9-_]+).html$ index.php?pagina=$1 [L,QSA] RewriteRule ^([a-zA-Z0-9_-]+)/([a-zA-Z0-9-.\s]+).html$ index.php?pagina=$1&poll=$2 [L,QSA] RewriteRule ^([a-zA-Z0-9_-]+)/([a-zA-Z0-9-.\s]+)/([0-9-_]+)$ index.php?pagina=$1&paginaphoto=$2&id_photo=$3 [L,QSA] but I have a problem... If I want to see this page katarinabulatovic.webuda.com/katarina/senior-clubs.html then I will have this error: "The requested URL /katarina/senior-clubs.html was not found on this server'. and if I am in the first version "katarinabulatovic.webuda.com/katarina/" here I have a button "katarinabulatovic.webuda.com/32katarina/index.html" where I want to see the second version, but when I try to see this page I have an error that this page doesnt exist..... Is it correct to use a file .htaccess for every folder (because I have 2 versions on the website)? thank you! Edited April 28, 2015 by milanello72 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.