Relative Content

Tag Archive for php.htaccess

Removing extension on some pages

I have a working htaccess to remove the extension on some pages and its working. but the problem files in other folder like /blog/ dont work

I want to rewrite my url for mobiles usign .htaccess

Gadgets92 – mobiles – index.php – product.php – .htaccess I have above folder structure Also, I have registered Gadgets92 folder as gadgets92.test using Windows virtual host In my http://gadgets92.test/mobiles/index.php file I have link to product.php file as “http://gadgets92.test/mobiles/slug”. I want you to convert “http://gadgets92.test/mobiles/slug” to “http://gadgets92.test/mobiles/product.php?slug=slug” using .htaccess I have tried RewriteEngine On # Rewrite […]

RewriteRule in .htaccess does not work as intended and explained on the internet

I have this website where when I want to go from index.php to leistungen.php the url should be …website/leistungen. The problem is I can’t get the .php away. The website is being hosted on Hostinger.
To achieve this I tried several different ways on how the RewriteRule is written. The only thing that seems to work partly is the following:

How to rewrite the url using .htaccess file?

I am in trouble. I designed a website where I am fetching data from database and I want to create a user friendly url dynamically using .htaccess file. My url type is like https://example.com/lrc.php?ti=Down+Bad&ar=Taylor+Swift&no=151107 and I want my url to be https://example.com/down-bad-lyrics-download-taylor-swift-151107 I am using this