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

html - Sizing a high-res image (~8MB) to display entirely in a small div (circular, diameter 100px) -

java - IntelliJ - No such instance method -

identifier - Is it possible for an html5 document to have two ids? -