James
James

Reputation: 2033

turning dynamic urls into static pages

I have a lot of pages on my website that are the following format:

page.php?id=34587

I have read that it would be better for search engines to find pages that are dynamic, as well as creating more content for my website if I had, for example: example.com/folder/folder/page-title-34587

How could I go about creating a lot of these pages by using php? I've looked into having the fopen stuff to create pages, but that seems very problematic. I've also noticed some sites are using wordpress, but does that have the functionality to create this?

Thanks in advance for your advice

Upvotes: 0

Views: 382

Answers (3)

la_f0ka
la_f0ka

Reputation: 1773

the reason it would be better for search engines is that you'd have keywords in the url...so just having words instead if ids is not gonna make anything better for you. Whether you're using tags, categories or post titles to do this, make sure you're using the right words there otherwise that's not gonna help you with search engines. Check more on mod_rewrite though, cause thats what you're looking for

Upvotes: 0

Ondřej Mirtes
Ondřej Mirtes

Reputation: 5616

You are looking for Apache mod_rewrite module.

Upvotes: 4

papachan
papachan

Reputation: 1909

I think its not PHP you requires, but modify your .htaccess file. The php will be able to parse your URL to show the correct content, as it is doing that with your variable.

Upvotes: 0

Related Questions