At present the webpage accepts get params like this https:// MY SITE/details.php?id=AlphaNumericKeys
Which I want to make it look like https://TripTale.in /details/someTexts/AlphaNumericKeys
Contents of my .htaccess file
Options All -Indexes
RewriteEngine on
RewriteCond %{HTTP_HOST} ^www\.(([a-z0-9_]+\.)?tripTale\.in)$ [NC]
RewriteRule .? https://%1%{REQUEST_URI} [R=301,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .? /404.php [L]
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteCond %{SCRIPT_FILENAME} !-f
RewriteRule ^details/(.*)$ details.php?q=$1 [QSA]
RewriteRule ^details/(\d+)/([\w-]+)$ details.php?id=$1&title=$2
RewriteRule ^details/([0-9]+)/([A-Za-z0-9-\+]+)/?$ /details.php?id=$1&title=$2
All the above tried code does not works and shows error 404.
However the below code works but makes all the images file as blank.
Options All -Indexes
RewriteEngine on
RewriteCond %{HTTP_HOST} ^www\.(([a-z0-9_]+\.)?tripTale\.in)$ [NC]
RewriteRule .? https://%1%{REQUEST_URI} [R=301,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .? /404.php [L]
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteCond %{SCRIPT_FILENAME} !-f
RewriteRule .? /404.php
RewriteRule ^([A-Za-z0-9]+)/([A-Za-z0-9]+) details.php?id=$1&title=$2 [QSA]