Create SEO permalinks using PHP without .htaccess -


currently, page urls this:

http://ourdomain.com/articles/?permalink=blah-blah-blah 

i want convert these to:

http://ourdomain.com/articles/blah-blah-blah 

how can accomplish using php not .htaccess?

how can accomplish using php not .htaccess..

you can't. need tell web server how deal urls don't physically exist. in apache, done in central configuration or in .htaccess file.

if server happens have acceppathinfo on, can try having urls like

http://ourdomain.com/index.php/articles/blah-blah-blah 

which redirect index.php , have articles/blah-blah-blah in $_server["path_info"] variable. method known "poor man's url rewriting" because can't rid of index.php part in url. if mentioned setting turned on (i think default), may able without using .htaccess file.


Comments

Popular posts from this blog

php - regexp cyrillic filename not matches -

c# - OpenXML hanging while writing elements -

sql - Select Query has unexpected multiple records (MS Access) -