htaccess file 301 redirect

label Computer Science
account_circle Unassigned
schedule 1 Day
account_balance_wallet $5

I'm trying to implement a 301 redirect.

I have a site where any url with: http://example.com/folder1/folder2/page.php?[then any query string]

I want these to always redirect to: http://example.com/folder1/folder2/page.php?final

What is the htaccess code I should insert to accomplish this?

Jun 14th, 2015

Thank you for the opportunity to help you with your question!

How to Activate an .htaccess file

If you have access to the server settings you can edit the configuration to allow the .htaccess file to override standard website configs. Open the apache2 default host configuration file. NB: You will need sudo privileges for this step.

sudo nano /etc/apache2/sites-available/default

Once inside that file, find the following section, and change the line that says AllowOverride from None to All. The section should now look like this:

 <Directory /var/www/>
                Options Indexes FollowSymLinks MultiViews
                AllowOverride All
                Order allow,deny
                allow from all
 </Directory>

After you save and exit that file, restart apache.


Please let me know if you need any clarification. I'm always happy to answer your questions.
Jun 14th, 2015

pleasure to work with you

Jun 14th, 2015

Not even close.

Jun 14th, 2015

sorry,what you mean

Jun 14th, 2015

Studypool's Notebank makes it easy to buy and sell old notes, study guides, reviews, etc.
Click to visit
The Notebank
...
Jun 14th, 2015
...
Jun 14th, 2015
Sep 20th, 2017
check_circle
Mark as Final Answer
check_circle
Unmark as Final Answer
check_circle
Final Answer

Secure Information

Content will be erased after question is completed.

check_circle
Final Answer