Jump to content

magnetica2

New Members
  • Posts

    4
  • Joined

  • Last visited

    Never

Everything posted by magnetica2

  1. Hey All I'm redesigning my portfolio / website and it's gonna showcase my work and any plugins, or tutorials I write along the way. Can you give me some thoughts on the design so far Check it out here http://nimblsystems.co.uk/new/ Thanks PS: Ignore the actual content, I just need thoughts and ideas on the header / footer / sidebar etc
  2. Hi All Need a little help with my RegEx, I am half way there but can't figure out the last bit I want the Regex to match. 123-456-789 I don't mind how long the numbers are, but the dashes in the middle can only be 1 long My regex so far ([^-]([0-9]+[^-])) This matches 123-456-789 but will also match 123-456----789 I just need the Regex to only allow 1 dash in the middle Thanks for any help
  3. Hi Im trying to redirect an old search page which was domain.co.uk/?q=search but now it's domain.co.uk/search?q=search. I have the code below but nothing happens. I'm pretty sure that this is close to right but i'm not an expert with the htaccess file so any advice would be appreciated. I do use CodeIgniter but I don't believe that would affect the code. RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_URI} ^\?q=(.*)$ RewriteRule ^\?q=(.*)/$ search?q=$1 [R=301,L] Also just so you know I am using the code below to remove trailing slashes and that works fine. RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_URI} ^(.*)/$ RewriteRule ^(.*)/$ $1 [R=301,L]
×
×
  • 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.