Forum Moderators: coopster

Message Too Old, No Replies

URL manipulation for search engine optimization

Cannot use mod_rewrite

         

Ogregod

9:20 am on Jul 22, 2005 (gmt 0)

10+ Year Member



Hi,

I just recently discovered mod_rewrite, and I have some dynamic php pages that I would like to change the URL of. But the problem is that my server providers doesn't run Apache servers. Is there another way to change the URLs?

What I want is to change such URL's:
http://www.example.net/bandtabs.php?artist=Transplants,%20The

to:

http://www.example.net/band/Transplants,%20The.htm
or similar..

The reason is that search engines won't list all my pages if they're based on the same .php file.

Any input would be appreciated!

[edited by: coopster at 10:17 am (utc) on July 22, 2005]
[edit reason] generalized url [/edit]

omoutop

9:35 am on Jul 22, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Hi,
The best way is to use Apache Server as well as
1- use mode rewrite
2-.thaccess file (to declare new urlz)
i.e.
//////////////////////////////////////////
RewriteEngine On
RewriteRule ^(.*)/(.*)/reviews/(.*)-(.*).htm$ reviews/Reviews.php?Groupreg=$1&Location=$2&Location=$3&offset=$4 [nc]
///////////////////////////////////////////
3- Robots.txt (to disallow spiders reach original files)
i.e.
////////////////////////////////////////
User-agent: *
Disallow: /reviews/Reviews.php
////////////////////////////////////////
Check out these links....

APACHE, .HTACCESS, MOD REWRITE

[httpd.apache.org...]

[httpd.apache.org...]

[httpd.apache.org...]
/////////////////////////////////////////

[edited by: jatar_k at 4:31 pm (utc) on July 22, 2005]
[edit reason] removed one urls [/edit]

Ogregod

8:10 pm on Jul 27, 2005 (gmt 0)

10+ Year Member



Thanks for the feedback, but my problem is that my server providers doesn't run Apache at all, so I need an alternative.

Using php I've managed to get rid of the? in the URL, but I don't know if that's enough. I would like to get rid of the .php as well. Any alternatives for ForceType out there?

jatar_k

8:58 pm on Jul 27, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



what is your server running then?

Ogregod

4:27 pm on Jul 28, 2005 (gmt 0)

10+ Year Member



Sorry, but it seems to be Apache, but without mod_rewrite or ForceType installed. So I can't translate the URLs or force a file without extension to be interpreted as a php scripts.

I've managed to strip the URLs of the?, but I don't know if that's enough. Any other way to force fiels to be interpreted as php?