How to make permlink uppercase to lowercase
By : Molly Verma
Date : March 29 2020, 07:55 AM
|
How to rewrite URL in .htaccess [seo permlink]
By : Tommy Cooksey
Date : March 29 2020, 07:55 AM
seems to work fine My file is category.php?id= and here is my code: , Try This code :
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www.name.com [NC]
RewriteRule ^(.*)$ http://name.com/$1 [L,R=301]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^category/([^\.]+)$ category.php [NC,L]
RewriteRule ^/(css|js|img)/(.*)?$ /$1/$2 [L,QSA,R=301]
RewriteRule ^([a-zA-Z0-9-/]+)/([a-zA-Z0-9-/]+)/?$ detail.php?title=$1&id=$2
RewriteRule ^([a-zA-Z0-9-/]+)/?$ detail.php?id=$1
Options -Indexes
|
Bash to python convertion for sending email
By : ace miel
Date : March 29 2020, 07:55 AM
Hope this helps Line alignment of two mail files(1 from shell & 1 form python) are different.When i changed the alignment, it worked. email file from shell: code :
Content-Transfer-Encoding: 7bit
Content-Transfer-Encoding: 7bit
From: vijay
To: kumar
Subject: test mail
|
while loop date convertion in bash
By : dhulting
Date : March 29 2020, 07:55 AM
like below fixes the issue I am having issues getting this while statement to work. I would like to convert the date format "YYYY-MM-DD" to "YYYYmmdd" (i.e. 2011-10-04 -> 20111004). , The problem is that QUERYDATE_CONVERT is never defined. Replace:
|
Bash to Python convertion
By : Vladimir Novitsky
Date : March 29 2020, 07:55 AM
this one helps. Want to convert the below shell code into python. , From Python 3.5 onwards you can do something like this: code :
import glob
list(glob.iglob('**/project_name.*/ddtest-7.0/**/*.json', recursive=True))
|