.htaccess is not working as good

this is my site https://xpredo.com/ work good on cpanel now i want to leave to virtualmin so i register test doamin and test server with virtualmin

test domain is https://xpredo.lamis.xyz

and .htaccess content

RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} !^xpredo.lamis.xyz$ [NC,OR]
RewriteCond %{HTTPS} off
RewriteCond %{REQUEST_URI} !^/[0-9]+…+.cpaneldcv$
RewriteCond %{REQUEST_URI} !^/[A-F0-9]{32}.txt(?:\ Comodo\ DCV)?$
RewriteRule ^(.*)$ https://xpredo.lamis.xyz/$1 [R=301,L]

RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([a-z_]+)$ $1/ [R=301]
RewriteRule ^(.)/$ $1.php
RewriteCond %{THE_REQUEST} .php
RewriteRule ^/?(.
).php$ $1/ [R=301]
RewriteRule ^singer/([0-9])$ singer.php?s=$1 [NC,L,QSA]
RewriteRule ^album/([0-9]
)$ album.php?a=$1 [NC,L,QSA]
RewriteRule ^album/year/([0-9])$ album.php?y=$1 [NC,L,QSA]
RewriteRule ^lyric/([0-9]
)$ lyric.php?l=$1 [NC,L,QSA]
RewriteRule ^singers/(.)$ singers.php?p=$1 [NC,L,QSA]
RewriteRule ^rss/(.
)$ rss_singer.php?r=$1 [NC,L,QSA]
RewriteRule ^tag/([\d]+)/(.+)$ tag.php?t=$1&d=$2 [NC,L,QSA]
RewriteRule ^sitemap.xml$ /sitemap/xpredo_site_map-index.xml [NC,L,QSA]
RewriteRule ^news/([0-9]+)$ news.php?nid=$1 [NC,L,QSA]
RewriteRule ^news/p/([0-9]+)$ news.php?p=$1 [NC,L,QSA]



if change RewriteEngine On to off
some link work
https://xpredo.lamis.xyz/privacy/ , https://xpredo.lamis.xyz/singers/

put stell page same https://xpredo.lamis.xyz/album/372 not work with on or off (RewriteEngine)
this work https://xpredo.lamis.xyz/album.php?a=372
ex all site work on cpanel https://xpredo.com/album/372


When accessing your test site here:


That is accessing your site, but your site isn’t showing the expected content.

I suspect your htaccess file is working properly.

I’d be curious if you’re seeing an issue with the app… maybe a dependency is missing from the new server that’s preventing the images from being displayed? Or maybe the paths are different from your old server to this one?

You may want to take a peek at the Apache error logs for the domain in $HOME/logs/error_log to see if it offers any input as to why that’s not working.


can test https://xpredo.lamis.xyz/album.php?a=372 will work the issue in htaccess “a” return null so my program show 404

same site with same htaccess work in cpanel 100 %

up .htaccess content work 100% on cpanel host or any server loclhost windows only virtualmin not work

I would start by deleting these two lines from .htaccess:

RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$ RewriteCond %{REQUEST_URI} !^/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$

That’s cPanel-specific code that they insert server-side.

I’m also getting this PHP error on https://xpredo.lamis.xyz/singer :

Fatal error: Uncaught Error: Call to undefined function active() in /home/xpredo/public_html/footer.php:11 Stack trace: #0 /home/xpredo/public_html/singer.php(128): require_once() #1 {main} thrown in /home/xpredo/public_html/footer.php on line 11

Are you possibly using more than one footer depending on the page? Or do some pages call that function and others don’t? When I call up https://xpredo.lamis.xyz/footer.php by itself, there’s neither an error nor anything in the source code.

Speaking of which, in my opinion, it’s a less-than-wonderful idea to place includes in the root of the site.

error from htaccess
we cant access https://xpredo.lamis.xyz/singer you must have number (1:)

https://xpredo.lamis.xyz/singer?s=1 work
https://xpredo.lamis.xyz/singer/1 notwork and query not work in htaccess and request as https://xpredo.lamis.xyz/singer?s=0 or https://xpredo.lamis.xyz/singer?s=NULL so we see error

if delete thes line nothing stell error

RewriteCond %{REQUEST_URI} !^/[0-9]+…+.cpaneldcv$
RewriteCond %{REQUEST_URI} !^/[A-F0-9]{32}.txt(?:\ Comodo\ DCV)?$

you can try same site on another server https://xpredo.com work fine 100%

My friend, I’m getting the identical PHP error on https://xpredo.com/singer/ as I get on https://xpredo.lamis.xyz/singer using four different browsers. That error is:

Fatal error: Uncaught Error: Call to undefined function active() in /home/xpredo/public_html/footer.php:11 Stack trace: #0 /home/xpredo/public_html/singer.php(128): require_once() #1 {main} thrown in /home/xpredo/public_html/footer.php on line 11

Is it possible that one of your includes or requires is pointed to your local computer? That would cause it to render properly on your computer but not any other.

thank you for help me
beacuse i program it i konw this error its not import on this page https://xpredo.com/singer/ beacause nobody request it
now i remove apatch include with virtualmin and install another version Server version: Apache/2.4.39 (IUS)
i hope help me

i downgrade apatch to Server version: Apache/2.4.39 (IUS) put stell not work

my frind now my site work 100% on new link http://lamis.xyz/
only remove virtualmin and install CENTOS WEB PANEL