php - htaccess add page name to url with query string -


i new , need htaccess redirect:

the source url: http://example.com/?p=1955

need convert to: http://example.com/index.php?p=1955

we changed home page index.php index.html , source url no longer works. idea check if there ?p query string on url , if redirect index.php?p=...

any ideas on how accomplish or other suggestions appreciated it.

try adding in htaccess file in document root:

rewriteengine on rewritecond %{query_string} ^p=([0-9]+) rewriterule ^$ /index.php [l] 

Comments

Popular posts from this blog

c++ - OpenCV Error: Assertion failed <scn == 3 ::scn == 4> in unknown function, -

php - render data via PDO::FETCH_FUNC vs loop -

The canvas has been tainted by cross-origin data in chrome only -