Forum Moderators: open

Message Too Old, No Replies

Replacing ? with /

How exactly can one replace the ? with a / in the URL

         

Bonedevil

5:12 pm on Jan 11, 2001 (gmt 0)



Hello everybody,

I want to pass a variable to a page without a question mark. How can I do it?

I would highly appreciate when you would send the script with the .htaccess file to me (busfan@metalfan.com).

Thanks!
Lauri

Air

2:52 am on Jan 12, 2001 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Welcome to WmW Lauri.

Just use a form with all hidden input fields, then you can pass variables to scripts and output static pages.

Bonedevil

7:53 am on Jan 12, 2001 (gmt 0)



Actually, I want to pass the variable as a link
<.a href="somepage.php?variable=yes">. SE's don't index such pages.

I draw pages directly from the DB and I pass the date when the information has been added. Then the page creates a dynamic page based on the date (draws the content with that date from the DB).

Hoping someone can help me

Bonedevil

7:53 am on Jan 12, 2001 (gmt 0)



Actually, I want to pass the variable as a link
<.a href="somepage.php?variable=yes">. SE's don't index such pages.

I draw pages directly from the DB and I pass the date when the information has been added. Then the page creates a dynamic page based on the date (draws the content with that date from the DB).

Hoping someone can help me

Tinla

11:46 am on Jan 12, 2001 (gmt 0)



You can use MOD_REWRITE if you use Apache and your version includes that feature. If it isn't installed you can recompile Apache but thats only worth trying if you're fairly experienced in such matters...

[httpd.apache.org ]

So you could put something like this in you .htaccess file:

--------------------------------
RewriteEngine on
RewriteBase /test/
RewriteRule ^(.*)\.html$ cgi.pl?q=$1 [T=application/x-httpd-cgi]
----------------snip----------------

With this if you asked for:

[dom.com...]

The server would display:

[dom.com...]

I'm not sure if that helped you but if you're using Apache as your webserver then MOD_REWRITE is an awesome tool that you can use to fake almost anything. Read the docs...

Tinla.

grnidone

7:32 pm on Jan 12, 2001 (gmt 0)



Tinla,

Welcome to the forums!
-G