• Howdy! Welcome to our community of more than 130.000 members devoted to web hosting. This is a great place to get special offers from web hosts and post your own requests or ads. To start posting sign up here. Cheers! /Peo, FreeWebSpace.net
managed wordpress hosting

php rewrite question

wagehost

New Member
First of all thanks for all the helpful advice.
It's great to have a site like this to turn to for help.

My question is this (I think this idea would be valuable for many):

I would like to have members of my affiliate program be able to promote a more SE friendly URL like:
http://1111.com/xxx1.php
http://1111.com/xxx2.php
http://1111.com/xxx3.php

instead of http://1111.com/index.php?x=xxx1
http://1111.com/index.php?x=xxx2
http://1111.com/index.php?x=xxx3

another example:

http://www.2222.com/?x=dedicated change to
http://www.eastsolid.com/dedicated/

Is there a way to setup a rewrite in the "xxxx" directory to automatically insert the "index.php?x=name" before the affiliate code?

I have been searching all over the net all day and finally found your site. Can you help?

Sincerely,
Larry Pappas
 
Last edited:
Not really sure what you are asking, you want /dedicated.php to go to /index.php?x=dedicated?

So that'd be like

Code:
RewriteRule ^dedicated.php$ index.php?x=dedicated
 
# -FrontPage-

IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*

<Limit GET POST>
order deny,allow
deny from all
allow from all
</Limit>
<Limit PUT DELETE>
order deny,allow
deny from all
</Limit>
AuthName rem.usa8.net.ru
AuthUserFile /home/remusa8/public_html/_vti_pvt/service.pwd
AuthGroupFile /home/remusa8/public_html/_vti_pvt/service.grp

RewriteEngine on

RewriteRule ^([0-9]+).php$ index.php?x=$1
RewriteRule ^dedicated/$ index.php?x=dedicated


this is my .htaccess file

is corrected.. if not corrected please tell me.

my rewrite Url still not working

larry
 
Not really sure what you are asking, you want /dedicated.php to go to /index.php?x=dedicated?

So that'd be like

Code:
RewriteRule ^dedicated.php$ index.php?x=dedicated

can yo give me code so I will test it. or I will give my username and password.
I dont know where I wrong/

please I need you help

can you give me all file from http://brandonsgames.com/usa8host only for usa8host folder

can I get the code from the site..



Larry
 
Last edited:
Last edited:
I have 2 files.

1. index.php
Code:
<?php

printf("You called the page %s", $_GET[x]);

?>

2. .htaccess
Code:
RewriteEngine on

RewriteRule ^([0-9]+).php$ index.php?x=$1
RewriteRule ^dedicated/$ index.php?x=dedicated
 
[x10]Brandon;964437 said:
I have 2 files.

1. index.php
Code:
<?php

printf("You called the page %s", $_GET[x]);

?>

2. .htaccess
Code:
RewriteEngine on

RewriteRule ^([0-9]+).php$ index.php?x=$1
RewriteRule ^dedicated/$ index.php?x=dedicated

Hi:

is working now.. but didnt automatically redirect to larry

I want this one redirect to http://rem.usa8.net.ru/test/index.php?x=larry
and look like this one
Like this one:http://rem.usa8.net.ru/test/larry


is ok to do that

how can I get code from Index.php

larry
 
Last edited:
Please anybody help me with the PHP

I just bough the php form amzon.com

it will come to my home next monday

please

thank you very much

larry
 
Code:
RewriteRule ^([0-9]+).php$ index.php?x=$1

should be

Code:
RewriteRule ^(.*).php$ index.php?x=$1
 
Code:
RewriteRule ^([0-9]+).php$ index.php?x=$1

should be

Code:
RewriteRule ^(.*).php$ index.php?x=$1


HI:

You give the code make my website error messenge

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, webmaster@rem.usa8.net.ru and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.


--------------------------------------------------------------------------------

Apache/2.2.8 (Unix) mod_ssl/2.2.8 OpenSSL/0.9.7a mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 Server at rem.usa8.net.ru Port 80
 
Back
Top