Http://www.mySite.com/kdd

I don’t even know what this is called, but it has something to do with personal URL.

For example, mySite.com/kdd would directly open my “kdd” page. I don’t even know if PHP somehow is used to manipulate something, or Apache (.htaccess) stuff.

If you’ve got something, please help me out. Would be great if you can link to some tutorial where it explains this stuff.

Thanks! :beam:

I’m still a bit confused. I remember simp saying, unless you have links to those pages, those pages will not be indexed by search engines.
So, if I have
mysite.com/xyz.php?num=1
mysite.com/xyz.php?num=2
mysite.com/xyz.php?num=3
rewritten to
mysite.com/1
mysite.com/2
mysite.com/3

Do search engines still need links to all those pages? Meaning, do I have to make a page for each variable (1, 2, 3, etc.) or can this just happen automatically?

Thanks guys, I’m still trying to learn this correctly. :slight_smile:

bump

Your content will automatically be indexed with your rewrited urls (no need to keep your old links)
I hope I understood your question right

No, that wasn’t exactly my question.

What I’m asking is, do I have to have physical pages to be indexed by search engines? OR can I just have 1 php page with $_GET setup in it to allow numbers, such as mysite.com/xyz.php?num=1, etc.?

If I, let’s say, have 1 php page xyz.php accepting num as a get parameter, will search engines determine appropriate get parameter and index all pages? I, of course, think they can’t, so how do search engines index pages with $_GET parameters? How will mod rewrite help in this case?

Thank you. :slight_smile:

  1. You hopefully don’t need physical pages for all the pages you want to be indexed. Just one php page with your $_GET setup is enough
  2. However, search engines only index pages that are linked somewhere in your website. That means you have to find a way to integrate a members list page if you want ALL your member pages to be indexed.

aaaaaahhhhhhh, after like a month that made sense! Thank you very much, kitsunegari. :slight_smile:

you’re welcome :slight_smile:

one more thing. Can I have mysite.com/kdd point to mysite.com/getUser.php?user=kdd and have mysite.com/search.php go to just mysite.com/search.php

So, basically anything after / with a dot (.) will not be rewritten, but anything that does NOT have a dot will be rewritten.

I doubt if this is possible, but I’m still learning this mod_rewrite. Thanks! :slight_smile:

Edit:
I had this kind of rule: ^u/([a-zA-Z0-9_]+) and that worked with mysite.com/u/kdd, but I don’t want /u/ stuff… I just want mysite.com/kdd.
I’m trying: ^([a-zA-Z0-9_]+[^.]+), but it’s not really working.

Holy crap! It worked with this regexp: ^([a-zA-Z0-9_]+[^.]+[^a-zA-Z0-9_]*)$

Could anyone please make sure it that it’ll rewrite mysite.com/kdd and not mysite.com/search.php or something with a dot?

Thank you! :slight_smile: