0

simple question, I don't find a working answer.

I have multiple sites like this:

www.example.com/#ajax/shipping.php
www.example.com/#ajax/pricing.php
www.example.com/#ajax/inventory.php

And want to only show www.example.com. I just can't find how I put this in .htaccess the best way. Can somebody assist please?

This is what I have in .htaccess right now:

Options -MultiViews

RewriteEngine On

RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule ^(.+)$ index.php/?url=$1 [QSA,L]
baao
  • 71,625
  • 17
  • 143
  • 203

2 Answers2

2

No, it's not possible. The URL fragment (everything from # on) not even gets sent to the server.

Maybe you want to consider a JavaScript based solution, where the actual content will be loaded via AJAX dependent on the fragment.

0

Not possible, everything after # doesn't even get to the server. Maybe this will intrest you What's the shebang/hashbang (#!) in Facebook and new Twitter URLs for?

Community
  • 1
  • 1
marekfmx
  • 1
  • 3