Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8695311
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T01:00:00+00:00 2026-06-13T01:00:00+00:00

I am using mode rewrite on an open cart system for seo url-s, it’s

  • 0

I am using mode rewrite on an open cart system for seo url-s, it’s working great according to the links. BUT I have a php code in the header:

<?php
$request = new Request();
if ( !isset($request->get['route']) ||  $request->get['route']=='common/home' ) { ?>
<div class="center-main">
<?php }else {?>
<div class="center-mainbg">

so if its not common/home, the div should inject <div class="center-mainbg">
and this rule doesent seams to work when mode rewrite is on, it is keeping the
<div class="center-main"> rule…

The htaccess rule for mod_rewrite looks like this:

RewriteBase /
RewriteRule sitemap.xml /index.php?route=feed/google_sitemap
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([^?]*) index.php?_route_=$1 [L,QSA]
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T01:00:02+00:00Added an answer on June 13, 2026 at 1:00 am

    The way i see it you just need to change the route variable name to:

    if ( !isset($request->get['_route_']) ||  $request->get['_route_']=='common/home' ) { ?>
    

    because in the Redirect rule the name of route is between underscores.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to make user friendly URL using mode rewrite. My problem is, that
I'm using js2-mode for working with javascript in emacs and for the most part
We are using IIS 7.5(windows 7 and integrated mode) and SiteCore 6.4. I have
I'm using preg_replace to create urls for modrewrite based paging links. I use: $nextURL
I've been using term-mode (called by (term) ) more frequently lately to run some
I am using strict mode for android 3.2 and am getting StrictModeDiskReadViolation during onCreate
I'm using folding-mode in emacs and was trying to make a function to insert
How to control LDAP Alias Dereferencing Mode using Java and Spring LDAP API? Similarly
Embarassingly simple question. Using CPerl mode in Emacs 23.4.1 on Windows 7 64, when
I want to run an .exe file in hidden mode using vc++ in VS2010.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.