QUESTION Add index.php to URL - Printable Version +- GetSimple Support Forum (http://get-simple.info/forums) +-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3) +--- Forum: General Questions and Problems (http://get-simple.info/forums/forumdisplay.php?fid=16) +--- Thread: QUESTION Add index.php to URL (/showthread.php?tid=6908) |
Add index.php to URL - loveelok - 2014-11-15 Hi, Now, URL is: http://demo.com/parentdemo/demo.html I Need to custom URL to: http://demo.com/index.php/parentdemo/demo.html Reason: Because My old website using joomla with this link, i want to keep old link for SEO. Thanks RE: Add index.php to URL - shawn_a - 2014-11-16 http://demo.com/index.php/parentdemo/demo.html that url makes no sense and you should avoid using it you can setup a permanent redirect in htaccess to tell seo to goto the new page RE: Add index.php to URL - loveelok - 2014-11-17 @shawn_a Thanks! But the problems is my customer want to use that link. Any way can do that? Or can redirect from any link have index.php to no index.html Ex: http://demo.com/index.php/parentdemo/demo.html => http://demo.com/parentdemo/demo.html htaccess? Can you help me write rule? Thanks RE: Add index.php to URL - shawn_a - 2014-11-17 Someone can , if not I'll see if I have one, also there is probably and example in the forums. But yeah that url makes no sense it has 2 files, although allows it might break some stuff on some servers or path parsing in pugins, also it is not a common or used pattern that I have ever seen. Your customer is confused. RE: Add index.php to URL - loveelok - 2014-11-17 @shawn_a I tried .htaccess: Quote:RewriteCond %{REQUEST_FILENAME} !-f In Admin CP Custom Permalink Structure:: Quote:index.php/%parent%/%slug%.html And It working with index.php/ in url! This Link: http://demo.com/index.php/parentdemo/demo.html Now is working. But i don't know it optimized or not |