Hi,
I have an issue with mod_rewrite within apache. It doesn't seem to want to escape the ? character. I have the following redirects set up.
However it doesn't want to escape the ? , if I do this
An don't have the ? in the url it works, unfortunately the previous site and system used the ? so I have to redirect with that still visible and used.
Is there anything I'm missing?
Thanks in advance for any replies
I have an issue with mod_rewrite within apache. It doesn't seem to want to escape the ? character. I have the following redirects set up.
Code:
RewriteEngine on
RewriteRule ^index.php\?$ /wp/index.php
RewriteRule ^index.php\?/articles/$ /wp/index.php?cat=9
RewriteRule ^index.php\?/news/$ /wp/index.php?cat=8
RewriteRule ^index.php\?/forums/$ /smf/index.php?
RewriteRule ^index.php\?/forums/viewforum/([^/\.]+)/?$ /smf/index.php?board=$1
RewriteRule ^index.php\?/forums/viewthread/([^/\.]+)/?$ /smf/index.php?topic=$1
However it doesn't want to escape the ? , if I do this
Code:
RewriteEngine on
RewriteRule ^index.php$ /wp/index.php
RewriteRule ^index.php/articles/$ /wp/index.php?cat=9
RewriteRule ^index.php/news/$ /wp/index.php?cat=8
RewriteRule ^index.php/forums/$ /smf/index.php?
RewriteRule ^index.php/forums/viewforum/([^/\.]+)/?$ /smf/index.php?board=$1
RewriteRule ^index.php/forums/viewthread/([^/\.]+)/?$ /smf/index.php?topic=$1
An don't have the ? in the url it works, unfortunately the previous site and system used the ? so I have to redirect with that still visible and used.
Is there anything I'm missing?
Thanks in advance for any replies
Code:
Last edited: