How to make a CNC on the site without a style issue?

The problem is that I want to do CNC on its website, where in my directory panel.php when I write the configuration to .htaccess, I have the styles either don't work or never comes to the page. The styles I have are in the way - assets/styles/main.css, and panel.php I have displayed the data on a GET request url: .../panel.php?url=[link to user], a view which I would like to do for reference: .../panel/[link to user]. I ask you to help.
March 23rd 20 at 18:40
1 answer
March 23rd 20 at 18:42
And where do you get the templates exactly where they are?
I have the files: index.php, panel.php, test.php, feed.php the assets folder->configurations, styles, scripts - Emelia_Nader commented on March 23rd 20 at 18:45
In configurations - php scripts scripts js in styles - css - Emelia_Nader commented on March 23rd 20 at 18:48
.htaccess file is in the folder index.php? - ulises.Muraz commented on March 23rd 20 at 18:51
@ulises.Muraz, YES - Emelia_Nader commented on March 23rd 20 at 18:54
@Emelia_Nader, can show the code .htaccess file? - ulises.Muraz commented on March 23rd 20 at 18:57

RewriteEngine On

AddDefaultCharset UTF-8

RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule ^(.+)$ panel.php?url=$1
- Emelia_Nader commented on March 23rd 20 at 19:00
But it is only recent that I have stood for all day I tried a lot of variations, even resorted to code generator .htaccess, but without success, anyway some kind of mistake - Emelia_Nader commented on March 23rd 20 at 19:03
@Emelia_Nader, try to shift the folder to the styles folder where it is .htaccess - ulises.Muraz commented on March 23rd 20 at 19:06
@ulises.Muraz, no, already tried - Emelia_Nader commented on March 23rd 20 at 19:09
in General, the correct htaccess code? - Emelia_Nader commented on March 23rd 20 at 19:12
@Emelia_Nader, partly Yes, now your send, which made for such a task - ulises.Muraz commented on March 23rd 20 at 19:15
@ulises.Muraz, OK - Emelia_Nader commented on March 23rd 20 at 19:18
RewriteEngine On
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteCond %{SCRIPT_FILENAME} !-f

RewriteRule ^(.*)$ ./index.php?url=$1 [QSA,L]
- ulises.Muraz commented on March 23rd 20 at 19:21
@ulises.Muraz, I like the last one cyclic redirect to a nonexistent link, namely: I try to go to .../panel.php/beridze and me going straight on .../panel.php/index.php (beridze is the url) - Emelia_Nader commented on March 23rd 20 at 19:24
Replace in my script index.php - ulises.Muraz commented on March 23rd 20 at 19:27
@ulises.Muraz, replaced, sorry, now hosting tupanul, but now not showing data - Emelia_Nader commented on March 23rd 20 at 19:30
Now let's play with php - Emelia_Nader commented on March 23rd 20 at 19:33
In fact, for good you need to see the MVC pattern(perhaps you're implementing), or you perusopetusta bike. Better to make access of a single file (index.php), but if you want to when you request the html output from panel, make the handler for this, but this is again a bike MVC - ulises.Muraz commented on March 23rd 20 at 19:36

Find more questions by tags htaccess