Need help with my URL-Rewrite function

brp002

Joined: 2008-10-23
Posts: 19
Posted: Fri, 2009-02-13 14:29

My Url Rewrite function makes my pages:

http://myscratchoff.com/gallery2/main.php/v/Exotic-Cars/

the new server I am transfering over too is:

http://vipclubsindc.com/myscratchoff/gallery2/v/Exotic-Cars/

Once I transfer domains I need the myscrathoff website to look exactly the same.

Notice the first one has a main.php and the second one does not.... I need that main.php file in there due to my page rankins and everything. If i put main.php/v/%path% my gallery does not work anymore.... Is it possible that I can get the main.php on my new server website.

Thanks,
Brian Pekarek

 
alecmyers

Joined: 2006-08-01
Posts: 4338
Posted: Fri, 2009-02-13 14:35

When you install the url rewrite module you have a choice of two url parsers - mod_rewrite or the other, php, one.

Mod_rewrite (available only on apache) doesn't require the main.php in the url; the php parser does. So if you want that, you need to use the php parser. You only get the choice when the module is first installed, so to switch you'll have to uninstall the url rewrite module and reinstall it.

 
brp002

Joined: 2008-10-23
Posts: 19
Posted: Fri, 2009-02-13 14:43

I am on a godaddy server... I think i can only use mod_rewrite.... I had issues with the other one... but i will try again

 
alecmyers

Joined: 2006-08-01
Posts: 4338
Posted: Fri, 2009-02-13 14:51

I can't think of any reason why the other parser (php_pathinfo) shouldn't be avaialable to you, but, essentially, that's what you need to solve your problem.

 
brp002

Joined: 2008-10-23
Posts: 19
Posted: Fri, 2009-02-13 16:00

I think is that when the main.php is included.... I get a message on the page that says "No Input File Specified.... So its not that it does not work its just that I get that message when i switch over to the PHPinfo rewrite...That is why I was told to switch over the mod_rewrite to get it to work.... I just dont want to loose my SEO optimization I have been working on.

Do you have any idea how I can fix this..

Thanks,
Brian Pekarek

 
filination
filination's picture

Joined: 2008-05-14
Posts: 6
Posted: Fri, 2009-02-27 00:07

Following up on brp002's last question. I'm facing the same situation. I would like to move from PHPinfo to mod_rewrite and be able to redirect all previous incoming links from other sites to the new URL structure. Any suggestions would be appreciated.