This one should work, replace X with <.
#– Your rewrite
XIfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index.php$ / [L,R=301]
X/IfModule>
Oh, just double-red your post. I think my rewrite rule will not work with WordPress since it needs index.php…. Sorry.
Thank you, what about redirecting
http://www.domain.com/none to
http://www.domain.com/
Thank you,
Chris
The same:
#– Your rewrite
XIfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^none(|/)$ / [L,R=301]
X/IfModule>
Where both “/none/” and “/none” are being redirected as it considers trailing slashes as well.
“replace X with <“
That means I should replace all x with < on all code sentences above?
Sorry, but I really don’t know any htaccess…
Thank you,
Chris
Michael_
how to redirect http://www.abc.com/123 to http://www.abc.com?id=123
thanks. (sorry for the interruption)
No, just in XIfModule and X/IfModule. I did not post it as this forum will discard it as it thinks it is invalid HTML code…
You can use it in the same manner:
#– Your rewrite
XIfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^123(|/)$ /?id=123 [L,R=301]
X/IfModule>
OK, I’m trying to combine the two above with this:
‘Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^domain.org [NC]
RewriteRule ^(.*)$ http://www.domain.org/$1 [L,R=301]’
wich is redirecting non www to www
Unfortunatelly, the server give me error500 (I just placed them all one after another)…
Please advice
Thank you,
Chris
Sorry, mods, please remove the links, I didn’t mean that…
Sorry
edited: solved
none of the above work on my unix – apache server, any ideea why?
Thank you,
Chris