Reply
does a "?" in the apache .htaccess "Redirect Permanent" break the syntax?
Old 05-20-2008, 07:37 AM does a "?" in the apache .htaccess "Redirect Permanent" break the syntax?
Average Talker

Posts: 18
Name: tell me first if you would keep this private
hello.

How can I redirect visitors of my home page (/) to a specific subfolder even if there are some special characters such as "?" or "," in the URL ?

I tried

Quote:
Redirect permanent / /index.php/board,1.0.html
or
Redirect permanent / http://www.mydomain.com/index.php/board,1.0.html
AND
Quote:
Redirect Permanent / /index.php?board=1.0
OR
Redirect Permanent / http://www.mydomain.com/index.php?board=1.0
but this ain't work' too.

any F1 ?

Last edited by webmaster73 : 05-20-2008 at 07:41 AM.
webmaster73 is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
Old 05-20-2008, 05:25 PM Re: does a "?" in the apache .htaccess "Redirect Permanent" break the syntax?
Arenlor's Avatar
Ultra Talker

Posts: 463
Name: Jerod Lycett
Location: /home/arenlor
Try URL encoding http://www.blooberry.com/indexdot/ht...rlencoding.htm
__________________
PHP Code:
<?php echo "Hello World"?>
HTML Code:
<html><head><title>Hello World</title></head><body><p>Hello World</p></body></html>
Arenlor is offline
Reply With Quote
View Public Profile Visit Arenlor's homepage!
 
Old 05-20-2008, 08:02 PM Re: does a "?" in the apache .htaccess "Redirect Permanent" break the syntax?
Average Talker

Posts: 18
Name: tell me first if you would keep this private
Quote:
Originally Posted by Arenlor View Post
thank you very much

I tried encoding the url , but this gave a error 500


Redirect permanent / http://www.mydomain.ch/index.php/board%2C1.0.html
webmaster73 is offline
Reply With Quote
View Public Profile
 
Old 05-20-2008, 11:04 PM Re: does a "?" in the apache .htaccess "Redirect Permanent" break the syntax?
Arenlor's Avatar
Ultra Talker

Posts: 463
Name: Jerod Lycett
Location: /home/arenlor
I think I know the issue. From reading mod_alias's information Redirect permament / http://www.example.com/index.php/board%2C1.0.html where / is for example.org would do this:
http://www.example.org/foobar.php > http://www.example.com/index.php/boa...tml/foobar.php
__________________
PHP Code:
<?php echo "Hello World"?>
HTML Code:
<html><head><title>Hello World</title></head><body><p>Hello World</p></body></html>
Arenlor is offline
Reply With Quote
View Public Profile Visit Arenlor's homepage!
 
Old 05-21-2008, 03:23 AM Re: does a "?" in the apache .htaccess "Redirect Permanent" break the syntax?
Average Talker

Posts: 18
Name: tell me first if you would keep this private
Quote:
Originally Posted by Arenlor View Post
I think I know the issue. From reading mod_alias's information Redirect permament / http://www.example.com/index.php/board%2C1.0.html where / is for example.org would do this:
http://www.example.org/foobar.php > http://www.example.com/index.php/boa...tml/foobar.php
thank you .

so what is the proper way to redirect all visitors of my homepage

www.myhome.com

to www.myhome.com/index.php/board%2C1.0.html

webmaster73 is offline
Reply With Quote
View Public Profile
 
Old 05-21-2008, 07:26 PM Re: does a "?" in the apache .htaccess "Redirect Permanent" break the syntax?
Arenlor's Avatar
Ultra Talker

Posts: 463
Name: Jerod Lycett
Location: /home/arenlor
I'm thinking maybe:
RedirectPermament / http://www.example.com/redir.php?r=
And have redir.php just have a meta refresh to the proper page (or just use one on your home page). My question is this, why do you want them to be redirected from your homepage to another page? Why not just move the other page to your home directory?
__________________
PHP Code:
<?php echo "Hello World"?>
HTML Code:
<html><head><title>Hello World</title></head><body><p>Hello World</p></body></html>
Arenlor is offline
Reply With Quote
View Public Profile Visit Arenlor's homepage!
 
Reply     « Reply to does a "?" in the apache .htaccess "Redirect Permanent" break the syntax?
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 



Page generated in 0.10415 seconds with 12 queries