Hello everyone!
I have this htaccess code:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME}.php -f
RewriteCond %{REQUEST_URI} !/$
RewriteRule (.*) $1\.php [L]
Options -Indexes
it works well on www.domaind.com
but now i wanted to put my project in www.domain.com/newproject
and my jQuery on load is missing “newproject”
$(document).ready(function(){
$('.classlist').click(function(){
$('#contenthere').load('/pages/release/release.php');
});
})
I have multiple pages and places where its like this so simply writing /newproject to the url will not help
I tried to change htaccess but couldnt get it work
Here is some parts i tried:
RewriteEngine On
RewriteCond %{REQUEST_URI} !^/newproject/ [OR]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
#RewriteCond %{REQUEST_FILENAME}.php -f
#RewriteCond %{REQUEST_URI} !^/newproject/
#RewriteRule ^(.*) $1\.php [L]
#RewriteRule ^(.*)$ /newproject/.php/$1 [L]
#RewriteCond %{REQUEST_FILENAME}.php -f
#RewriteCond %{REQUEST_URI} !/$
#RewriteRule (.*) $1\.php [L]
Options -Indexes