Forum Moderators: phranque
ErrorDocument 404 /errror/error.php [L]
#
RewriteEngine On
#
Options +FollowSymlinks
#
RewriteRule ^index\.html$ index.php [L]
#
RewriteRule ^AllboutUs\.html$ mycompany.php [L]
#
Redirect permanent /enews http://example.com/news/index.php?utm_source=ote_news&utm_medium=email
&utm_content=textlink&utm_campaign=content%2Bannounce
Please inform me if
1. this file is always in root directory where it will influence code to rewrite?
2. my error page will be always shown when there is wrong URL by user within web site?
3. How to prepare correct .htaccess for email campaign or my code is correct like Redirect permanent /enews and other part
4. How to prepare file also for banner ads with redirection within .htaccess file
thank you for replies.
[edited by: jdMorgan at 2:17 pm (utc) on April 4, 2008]
[edit reason] Fixed [ code ] formatting & side-scroll, use example.com [/edit]
Please inform me
An .htaccess file is used to override (where allowed) the configuration of an Apache webserver.
It is not HTML and none of the code you posted will work.
There are many examples in the forum Library and in previous posts, which you really should read.
But only if your site is hosted on an Apache server.
You need to test it on your server, or set up a development server that you can test it on.
That said, you code looks OK, although I recommend that you do not mix mod_rewrite and mod_alias directives if you want to control their order of execution.
Jim
Can you help me and maybe provide me correct code in case of this sample for campaign tracking statistics?