A few questions...

First, is there anything I can consolidate on this .htaccess and keep all of the functionality?

Is my htaccess file going to be hidden from users with lines 2-5 or is there something else I need to do?

My last one is probably the most fun. As you can see I have a redirect to www.mysite.com/index.php (both a WWW and .PHP redirect). However, my conflict is with the last line and that's partially because of what I just mentioned. I have a product pitch page which is on index.php and I also have a navigation button on my site that says "Order" which links you to index.php#Order (at the bottom of my page).

The conflict is that clicking on the index.php#Order link redirects you to index.php without the anchor. Anyone know how to make an exception to my rewrite rules so that my index.php anchor works properly?

Thank you so much!

DirectoryIndex index.php
<Files ~ "^\.ht">
    Order allow,deny
    Deny from all
</Files> 
ErrorDocument 404 /404.php
Options +FollowSymLinks
RewriteEngine on
Options +FollowSymlinks
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /.*index\.php\ HTTP/ 
RewriteRule ^(.*)index\.php$ http://www.mysite.com/$1 [R=301,L]
RewriteBase /
RewriteCond %{HTTP_HOST} !^www\.mysite\.com$ [NC]
RewriteRule ^(.*)$ http://www.mysite.com/$1 [R=301,L]
redirect 301 /order.php http://www.mysite.com/index.php#Order

I just remembered that # comments out the line in Apache .htaccess. Any other ideas, should I use some kind of DHTML/AJAX script to just slide or jump down? Any suggestions?

http://www.mysite.com/index.php#Order
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.