changes to .htaccess are not showing up in the web site

Custom URLs and redirections.
Peter
Posts: 1
Joined: Sun Mar 30, 2008 12:43 pm

changes to .htaccess are not showing up in the web site

Postby Peter » Sun Mar 30, 2008 12:58 pm

I installed the program without any problems. I can add code to the .htaccess file to redirect to http://www.mysite.com and it works but when I add a section to include another page it does not change the .php extension to .html. I even tried to change the contact_us url and that did not work either. This is what I added to the .htaccess file

Code: Select all

#about_us.php - about_us
RewriteCond %{QUERY_STRING} ^currency=([a-zA-Z]{3})&osCsid=([a-z0-9]*) [OR]
RewriteCond %{QUERY_STRING} ^currency=([a-zA-Z]{3}) [OR]
RewriteCond %{QUERY_STRING} ^osCsid=([a-z0-9]*) [OR]
RewriteCond %{QUERY_STRING} ^
RewriteRule ^about-us.html$ about_us.php [L,QSA]


The permissions for .htaccess are 644 so they are not being written over, the code is not there. I have been using notepad to edit the .htaccess file.

NOTE: on line 2 in the code above that is a ampersand sign before osCsid, it is just showing up differently here.

inveo
Inveo Support
Posts: 1275
Joined: Sat Feb 02, 2008 12:07 pm
Contact:

Re: changes to .htaccess are not showing up in the web site

Postby inveo » Sun Mar 30, 2008 1:22 pm

Rewrite Rules in .htaccess file only handle executed URIs. Manually added link must be replaced directly in HTML source to reflect changes also on the page.