Redirect old php link to wordpress link in .htaccess

I am trying to redirect old page link to new wordpress link using .htaccess, I tried two following redirection steps but none of them works. Both are in same domain like www.example.com/folder/first-index.php?idTop=0 and www.example.com/foldernew/products-list/ I am trying other steps to but no luck. Please anyone correct my code. Thank you.

.htaccess: Invalid command ‘RewriteEngine’, perhaps misspelled or defined by a module not included in the server configuration

or defined by a module not included in the server configuration Check to make sure you have mod_rewrite enabled. From: https://webdevdoor.com/php/mod_rewrite-windows-apache-url-rewriting Find the httpd.conf file (usually you will find it in a folder called conf, config or something along those lines) Inside the httpd.conf file uncomment the line LoadModule rewrite_module modules/mod_rewrite.so (remove the pound ‘#’ … Read more

How to remove index.php from WordPress site URL

Go to your WP-ADMIN–>Settings–>Permalink and use the permalink structure change there, if it generate any .htaccess file copy the content and update your .htaccess file. Or Check if your hosting mod_rewrite is enable by creating a file phpinfo.php with content, Upload this file and browse via Browser. So you know which modules are enabled. You … Read more

Redirect non-www to www in .htaccess

Change your configuration to this (add a slash): Or the solution outlined below (proposed by @absiddiqueLive) will work for any domain: If you need to support http and https and preserve the protocol choice try the following: Where you replace login with checkout.php or whatever URL you need to support HTTPS on. I’d argue this is a bad idea though. … Read more

Getting a 500 Internal Server Error on Laravel 5+ Ubuntu 14.04

Finally Overcame the problem It was not the .htaccess file that was the problem nor the index.php. The problem was on accessing the files and requiring permissions. For solving the problem i ran the following commands through terminal. and then type below to allow laravel to write file to storage folder This two commands solved … Read more

Server unable to read htaccess file, denying access to be safe

I have created a simple app using AngularJS. When I tried to host that project in my website http://demo.gaurabdahal.com/recipefinder it shows the following error: Forbidden You don’t have permission to access /recipefinder on this server. Server unable to read htaccess file, denying access to be safe But if I go to http://demo.gaurabdahal.com/ it displays “access … Read more

.htaccess deny from all

is an .htaccess command(the actual content of that file you are trying to view). Not a denial of being able to edit the file. Just reopen the .htaccess file in the text viewer of choice and make the alterations as you so desire, save it, then reupload it to your folder of choice. Though I … Read more