Jump to content

mod_rewrite trailing slash


bigheadedd

Recommended Posts

Hi Guys,

 

Really simple one here, but struggling to find any real correct syntax?!

 

RewriteRule ^info$ /info_page.php

 

at the moment it domain.com/info

 

but not domain/info/

 

I know I need a catch all, but can't find any documentation on it?

Is it better to link to everything with a trailing slash?

 

Also, not sure if you know much about rewriting to ajax loaded content? I've read a lot about google changing from # to #!

 

for example.. i've got:

 

http://domain.com/about#!2

 

That loads page 2 of the about page. However i'd ideally like it to be crawlable and

 

http://domain.com/about/#!/2

 

I know this is a bit complex as I don't think the hash is dealt with client side rather than server side. Any info on that would be awsome.

 

Thanks again

 

Edd

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.