I have a script that hits a page on my drupal site which I've registered in hook_menu as 'mymodule/fetch/blah'. I'm currently hitting this page at mydrupalsite.com/?q=mymodule/fetch/blah. If I were to enable clean urls (and maybe paths too), would my script still be able to successfully hit mydrupalsite.com/?q=mymodule/fetch/blah ?

Comments

jaypan’s picture

Yes. It will actually be able to hit mydrupalsite.com/?q=mymodule/fetch/blah as well as mydrupalsite.com/mymodule/fetch/blah. This isn't so great for SEO (being able to hit two URLs with the same content) so you can install the global redirect module which will forward the q= version to the non-q= version.

Contact me to contract me for D7 -> D10/11 migrations.

soyoung.shin’s picture

awesome, thank you so much!