giulmas Posted April 29, 2015 Share Posted April 29, 2015 Hi, everybody! I wonder if is there any chance to rewrite url in a site that I'm trying to improve in SEO. E.g.: I would that the link http://www.landisport.com/product_info.php?products_id=4784&osCsid=4f7da2aeb29522841fefdde9acd0c02e becomes something like http://www.landisport.com/sneaker/sneaker-new-balance-m991nv I've already tried HeaderTags SEO and Ultimate SEO Urls and both returned a 404 error... This has happened, maybe, because of the previous webmaster did something wrong, don't know... I wonder and ask you if is there any chance to rewrite url handly with Apache's mod_rewrite. Thanks Cheers Link to comment Share on other sites More sharing options...
MrPhil Posted April 29, 2015 Share Posted April 29, 2015 Well, there are two parts to the story: 1. PHP code changes to produce your "SEO" format links instead of real (dynamic) addresses (HREF changed) 2. .htaccess code to "rewrite" URIs from SEO format to the real (dynamic) addresses It sounds like you may have (1) working correctly, but perhaps (2) isn't working. Was your .htaccess modified correctly? Do you use a server that actually reads and processes rewrites in .htaccess? Apache does, Windows (IIS, Windows Server) doesn't, ngix maybe. Also, your Apache server may need to have rewrites enabled. You can try temporarily adding [R=301] flag to one or two rewrites, to see that it's working and producing the correct real address. Link to comment Share on other sites More sharing options...
giulmas Posted April 29, 2015 Author Share Posted April 29, 2015 Many thanks for your help! I only know that server is managed by cPanel, but I don't know how to configure Apache from cPanel... I'll search some handbook, about that. Anyway, I'll try to follow the way you suggested to me and then I'll let you know about the result! Many thanks again Cheers Link to comment Share on other sites More sharing options...
MrPhil Posted April 29, 2015 Share Posted April 29, 2015 If you're on a shared server, you probably won't be actually able to configure the Apache server (if that's what you're on) -- your host would have to do that. However, the .htaccess file is an ordinary file which should have been updated to add some Rewrites when one or the other SEO add-on was installed. You can at least look in it to see if it was updated. Now, if you're running on nginx or one of the Windows servers, you'll have to investigate how to get them to recognize .htaccess. On Apache, you can ask your host whether URL rewriting is enabled. Link to comment Share on other sites More sharing options...
giulmas Posted April 30, 2015 Author Share Posted April 30, 2015 Many thanks! Bye Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.