Jump to content

Problem on server with .htaccess


milanello72

Recommended Posts

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 by milanello72
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.