#00AF33
Bark Different.
102833
0
1
Feb 12, 2023 16:57:46 GMT -8
RedBassett
I'm a Marxist/Lennonist of the Groucho/John variety.
15,405
April 2007
applecomputer
RedBassett's Mini-Profile
|
Post by RedBassett on Feb 3, 2013 14:05:42 GMT -8
So I think i understand the basics of mod_rewrite so far, but not too well apparently.
I want my hypothetical site to direct (almost) all traffic to home.html, which will parse the SEO URLs. This means that /home, /home.html, /index.html, /something/somethingelse/gobledegook all go to home.html (don't worry about passing GET variables, the home file will parse the entire URL later).
Here is the current setup:
Options +FollowSymLinks RewriteEngine on RewriteCond %{REQUEST_FILENAME} !/something/I/want/to/preserve.html RewriteRule ^(.*)$ /home.html [L]
This works brilliantly. Except it works as a redirect: the URL in browser becomes "/home.html". How do I load the home.html page in the background but keep the URL the same?
|
|