Page is a not externally linkable
- Code, Content, and Presentation
-- Apache Web Server
---- Redirect html pages with htaccess


avatar77 - 2:01 pm on Sep 30, 2012 (gmt 0)


So, should i have to modify it like this?

#Options +FollowSymLinks +ExecCGI

<IfModule mod_rewrite.c>
RewriteEngine On

## uncomment the following line, if you are having trouble
## getting no_script_name to work
RewriteBase /

## remove trailing slash
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} ^(.+)/$
RewriteRule ^(.+)/$ $1 [R=301,L]

## turn off index.html, it is for offline mode
RewriteRule ^.*index.html$ index.php [QSA]
RewriteRule ^contacts.html$ /#/contacts/ [QSA]
RewriteRule ^about_us.html$ /#/about_us/ [QSA]
RewriteRule ^services.html$ /#/services/ [QSA]

## internal rewrite
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php [QSA,L]
</IfModule>

Thanks in advance


Thread source:: http://www.webmasterworld.com/apache/4501984.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com