954,597 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

PHP, Mod_rewrite no map

Hi all!

I have an issue with the mod_rewrite and i hope someone here can help me out!?! :)

My webhosting company does not support rewritemap and i really need to have SEO friendly URLS. I can't pass the name of the page directly since it can contain characters like åäö :(


So this is what i need for exampel for page named: Åskön
http://www.site.com/id=49
to be
http://www.site.com/Askon

Is this even possible without rewritemap?

Thank you!!

koolander
Newbie Poster
3 posts since Mar 2008
Reputation Points: 10
Solved Threads: 0
 

A map is nothing more than a search replace list, so you could just use one RewriteRule for every line in the map.

pritaeas
Posting Expert
Moderator
5,484 posts since Jul 2006
Reputation Points: 653
Solved Threads: 875
 

That's true, but the problem is that the page is dynamic and items could be addes or removed, then that means i have to change the .htaccess file everytime some changes are made!

Or?

koolander
Newbie Poster
3 posts since Mar 2008
Reputation Points: 10
Solved Threads: 0
 

Correct. But it is just a text file, so writing to it would be no different then to the map file.

pritaeas
Posting Expert
Moderator
5,484 posts since Jul 2006
Reputation Points: 653
Solved Threads: 875
 

you'r absolutely right. Gonna give it a try. I'll get back when it is done.
Thx mate!

koolander
Newbie Poster
3 posts since Mar 2008
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: