0
Welcome Guest! Login
0 items Join Now

How to reroute index.php to root domain for SEO purposes

    • fewleh's Avatar
    • fewleh
    • Hero Rocketeer
    • Posts: 340
    • Thanks: 0

    How to reroute index.php to root domain for SEO purposes

    Posted 15 years 2 months ago
    • Hey there, I'm trying to route index.php to the root, to save duplication etc....it works well, using htacess, but when you start going through the checkout pages, (they are domain.com/index.php) they get re-routed to the root domain......which makes sense.....so is tehre another way of doing it? Or is that it - I can't use htaccess rule on index.php --> root? I hope someones heard of a solution :(

      I'm using virtuemart & mynxx, my url is www.iquarium.co.uk/

      Thanks for any thoughts rocketeers :arrowu:
    • www.cityinsurance.co.uk
  • Re: How to reroute index.php to root domain for SEO purposes

    Posted 15 years 2 months ago
    • It seems to be the Virtuemart issue. You might want to check this solution
    • fewleh's Avatar
    • fewleh
    • Hero Rocketeer
    • Posts: 340
    • Thanks: 0

    Re: How to reroute index.php to root domain for SEO purposes

    Posted 15 years 2 months ago
    • hmm, doesnt seem to work..I tried changing the $_SERVER) to ($_SERVER) put in the htaccess command to redirect index.php to / , and it just hangs when you try and add something to the cart. =[ Will try again some other ways, later on, thanks for your suggestion
    • www.cityinsurance.co.uk
    • fewleh's Avatar
    • fewleh
    • Hero Rocketeer
    • Posts: 340
    • Thanks: 0

    Re: How to reroute index.php to root domain for SEO purposes

    Posted 15 years 2 months ago
    • Just tried a few other methods discussed on those forums, but doesnt seem to fix it....I will leave the setup as it was, at least it worked :c) Hopefuly the SEO impact of not redirecting index.php to root will be minor?
    • www.cityinsurance.co.uk
    • fewleh's Avatar
    • fewleh
    • Hero Rocketeer
    • Posts: 340
    • Thanks: 0

    Re: How to reroute index.php to root domain for SEO purposes

    Posted 15 years 2 months ago
    • w00t! - fixed it....it ened up being a problem with the redirect....tried lots of different combinations..and tried updating core joomla files and vm files...in the end I put them all back to standard. (apart from, I'm using an updated seo friendly router.php that I downloaded from VM extensions website)

      I changed it to -

      RewriteEngine On

      RewriteCond %{HTTP_HOST} ^iquarium.co.uk [NC]
      RewriteRule ^(.*)$ www.iquarium.co.uk/$1 [L,R=301]

      RewriteCond %{THE_REQUEST} ^GET\ .*/index\.(php|html)\ HTTP
      RewriteRule ^(.*)index\.(php|html)$ /$1 [R=301,L]

      This gets the all ok from www.searchmasters.co.nz/redirect-check/ and the checkout works all the way to the end :D

      Thanks as always Arfin, your a legend

      Hopefully this can help someone else, if they want SEO friendly website with virtuemart and a rockettheme template
    • www.cityinsurance.co.uk
  • Re: How to reroute index.php to root domain for SEO purposes

    Posted 15 years 2 months ago
    • Wow, thanks for your sharing Fewleh :D Appreciate it so much
    • fewleh's Avatar
    • fewleh
    • Hero Rocketeer
    • Posts: 340
    • Thanks: 0

    Re: How to reroute index.php to root domain for SEO purposes

    Posted 15 years 2 months ago
    • fewleh wrote:
      w00t! - fixed it....it ened up being a problem with the redirect....tried lots of different combinations..and tried updating core joomla files and vm files...in the end I put them all back to standard. (apart from, I'm using an updated seo friendly router.php that I downloaded from VM extensions website)

      I changed it to -

      RewriteEngine On

      RewriteCond %{HTTP_HOST} ^iquarium.co.uk [NC]
      RewriteRule ^(.*)$ www.iquarium.co.uk/$1 [L,R=301] <
      rewrite for non-www to www

      RewriteCond %{THE_REQUEST} ^GET\ .*/index\.(php|html)\ HTTP
      RewriteRule ^(.*)index\.(php|html)$ /$1 [R=301,L] <
      rewrite for the index.php (& .html) to root

      This gets the all ok from www.searchmasters.co.nz/redirect-check/ and the checkout works all the way to the end :D

      Thanks as always Arfin, your a legend

      Hopefully this can help someone else, if they want SEO friendly website with virtuemart and a rockettheme template
    • www.cityinsurance.co.uk

Time to create page: 0.052 seconds